Skip to content

Commit 3fada40

Browse files
committed
Revert "Fix UTF8 encoding error"
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.
1 parent 7540373 commit 3fada40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

views/source_file.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
<% end %>
4646
<% end %>
4747

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

0 commit comments

Comments
 (0)