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:
parent
6342a3842c
commit
bad2d172ec
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue