Skip to content

Commit

Permalink
Revert "Fix UTF8 encoding error"
Browse files Browse the repository at this point in the history
This reverts commit 2608b9d.

Replaced by: simplecov-ruby/simplecov#866
As suggested by: #91 (comment)
Should be safe to revert as apparently ruby itself doesn't work
when the encoding isn't declared properly so should be good.

For files that aren't required by ruby but tracked we added a
test case with broken encoding (in simplecov main) but it still
seems to work.  So this complexity is likely not needed anymore.
  • Loading branch information
PragTob committed Feb 22, 2020
1 parent 7540373 commit 81e49c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/source_file.erb
Expand Up @@ -45,7 +45,7 @@
<% end %>
<% end %>

<code class="ruby"><%= CGI.escapeHTML(line.src.chomp.encode('UTF-8', invalid: :replace, undef: :replace)) %></code>
<code class="ruby"><%= CGI.escapeHTML(line.src.chomp) %></code>
</li>
</div>
<% end %>
Expand Down

0 comments on commit 81e49c9

Please sign in to comment.