From b7c6a7e50f7fadb790add3ec73121f9ef8f9bdd0 Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Sat, 24 Jul 2010 02:00:40 -0700 Subject: [PATCH] fix a bug in syntax highlighting now that we have a couple unicode chars --- doc-src/lib/data_sources/syntax_highter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc-src/lib/data_sources/syntax_highter.rb b/doc-src/lib/data_sources/syntax_highter.rb index 36eb8ff7..a2faacba 100644 --- a/doc-src/lib/data_sources/syntax_highter.rb +++ b/doc-src/lib/data_sources/syntax_highter.rb @@ -11,7 +11,7 @@ class SyntaxHighlighterFilter < Nanoc3::Filter def pygmentize(code, type) # -O linenos=table - IO.popen("pygmentize -l #{type} -f html", "r+") do |io| + IO.popen("pygmentize -l #{type} -f html -O encoding=utf-8", "r+") do |io| io.write(code) io.close_write return io.read