Permalink
Browse files

syntax highlight should with utf-8

  • Loading branch information...
xdite committed Dec 21, 2011
1 parent 7924e8c commit 5a1d5fa4f072f2eedd3f11d114c7264db0243a9a
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/gollum/markup.rb
View
@@ -394,7 +394,7 @@ def process_code(data)
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

0 comments on commit 5a1d5fa

Please sign in to comment.