fix a bug in syntax highlighting now that we have a couple unicode chars

This commit is contained in:
Chris Eppstein 2010-07-24 02:00:40 -07:00
parent 06ab3d4b41
commit b7c6a7e50f

View File

@ -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