lib/jekyll/converters/markdown.rb in jekyll-1.0.0.beta1 vs lib/jekyll/converters/markdown.rb in jekyll-1.0.0.beta2

- old
+ new

@@ -135,10 +135,10 @@ end when 'rdiscount' rd = RDiscount.new(content, *@rdiscount_extensions) html = rd.to_html if rd.generate_toc and html.include?(@config['rdiscount']['toc_token']) - html.gsub!(@config['rdiscount']['toc_token'], rd.toc_content) + html.gsub!(@config['rdiscount']['toc_token'], rd.toc_content.force_encoding('utf-8')) end html when 'maruku' Maruku.new(content).to_html end