Skip to content

Commit

Permalink
Remove UTF-8 -> UTF-16 -> UTF-8 encoding dance to avoid JRuby bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Mahoney committed Feb 19, 2013
1 parent 83c4152 commit 5ac9f40
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 4 deletions.
Expand Up @@ -18,7 +18,6 @@
"#{title}\n\n#{summary.gsub(/^/, " ")}\n\n"
end
end.join
sections = sections.force_encoding('UTF-8').encode('UTF-16LE', :invalid => :replace).encode('UTF-8') if sections.respond_to?(:force_encoding)
%>
<%= raw sections %>
</pre>
Expand Down
Expand Up @@ -10,6 +10,5 @@
"#{title}\n\n#{summary.gsub(/^/, " ")}\n\n"
end
end.join
sections = sections.force_encoding('UTF-8').encode('UTF-16LE', :invalid => :replace).encode('UTF-8') if sections.respond_to?(:force_encoding)
%>
<%= raw sections %>
Expand Up @@ -27,7 +27,6 @@
[title, summary.gsub(/^/, " "), nil].join("\n\n")
end
end.join
sections = sections.force_encoding('UTF-8').encode('UTF-16LE', :invalid => :replace).encode('UTF-8') if sections.respond_to?(:force_encoding)
%>
<%= raw sections %>
Expand Down
Expand Up @@ -19,7 +19,6 @@
[title, summary.gsub(/^/, " "), nil].join("\n\n")
end
end.join
sections = sections.force_encoding('UTF-8').encode('UTF-16LE', :invalid => :replace).encode('UTF-8') if sections.respond_to?(:force_encoding)
%>
<%= raw sections %>

0 comments on commit 5ac9f40

Please sign in to comment.