Commits

Michael Granger  committed 45bf3dd

Open pages using UTF-8, too.

  • Participants
  • Parent commits cc72d80

Comments (0)

Files changed (1)

File lib/strelka/cms/page.rb

 
 	### Read page source from the file at the given +path+ and return a new Page object.
 	def self::load( path, catalog=nil )
-		page = File.open( path, 'r' ) do |io|
+		page = File.open( path, 'r', encoding: 'utf-8' ) do |io|
 			self.read( io, catalog )
 		end