syntax highlight should with utf-8

This commit is contained in:
xdite
2011-12-21 15:18:12 +08:00
parent 7924e8c9a9
commit 5a1d5fa4f0
+1 -1
View File
@@ -394,7 +394,7 @@ module Gollum
end
highlighted = begin
blocks.map { |lang, code| Pygments.highlight(code, :lexer => lang) }
blocks.map { |lang, code| Pygments.highlight(code, :lexer => lang, :options => {:encoding => 'utf-8'}) }
rescue ::RubyPython::PythonError
[]
end