lib/octopress/page.rb in octopress-3.0.11 vs lib/octopress/page.rb in octopress-3.0.12.pre.1
- old
+ new
@@ -131,10 +131,10 @@
if file
file.sub!(/^_templates\//, '')
file = File.join(site.source, '_templates', file) if file
if File.exist? file
- parse_template File.open(file).read
+ parse_template File.open(file).read.encode('UTF-8')
elsif @options['template']
abort "No #{@options['type']} template found at #{file}"
else
parse_template default_front_matter
end