Make syntax highlighting (Albino, Pygmentize) not break on UTF-8 in code.

Signed-off-by: Nick Quaranto <nick@quaran.to>
This commit is contained in:
Henrik N 2009-04-14 20:47:32 +02:00 committed by Nick Quaranto
parent 6342a3842c
commit bad2d172ec
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ class Albino
def initialize(target, lexer = :text, format = :html) def initialize(target, lexer = :text, format = :html)
@target = File.exists?(target) ? File.read(target) : target rescue target @target = File.exists?(target) ? File.read(target) : target rescue target
@options = { :l => lexer, :f => format } @options = { :l => lexer, :f => format, :O => 'encoding=utf-8' }
end end
def execute(command) def execute(command)