Closed fnando closed 12 years ago
Try with:
Pygments.highlight(code, :lexer => lang, :options => {:encoding => 'utf-8'})
...or whatever your text encoding is. Cheerios.
Just tried the shell pygmentize
command, and everything works as expected.
pygmentize -l ruby -f html -o /tmp/output.html /tmp/chars.rb
@tanoku Oh, thanks! I commented before viewing your post! ;)
:sparkles:
pygments.rb is not respecting characters while converting code.
Here's the current output:
The expected output is: