Skip to content

Commit

Permalink
Hotfix to display files with encoding issue
Browse files Browse the repository at this point in the history
Rails saying: incompatible character encodings: ASCII-8BIT and UTF-8

Example path: /cases/oscys.caseid.0105
  • Loading branch information
techgique committed Mar 12, 2018
1 parent 688bd18 commit 292e018
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
</div><!-- /.navbar -->
<div id="main" class="main_content">
<!-- begin content -->
<%= yield %>
<%= yield.to_s.force_encoding("UTF-8") %>
<!-- end content -->
</div>
<div id="footer" class="footer">
Expand Down

0 comments on commit 292e018

Please sign in to comment.