Skip to content

Commit

Permalink
nokogiri+ libxml-2.7.7 : doc.to_html generates invalid UTF
Browse files Browse the repository at this point in the history
  • Loading branch information
Wlodek Bzyl committed Sep 3, 2010
1 parent 0f4f34e commit ee3e949
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rack/codehighlighter.rb
Expand Up @@ -32,7 +32,7 @@ def call(env)

content = ""
response.each { |part| content += part }
doc = Nokogiri::HTML(content)
doc = Nokogiri::HTML(content, nil, 'UTF-8')
nodes = doc.search(@opts[:element])
nodes.each do |node|
s = node.inner_html || "[++where is the code?++]"
Expand Down

0 comments on commit ee3e949

Please sign in to comment.