编程作业的字符集问题

This commit is contained in:
cxt 2017-03-31 14:25:54 +08:00
parent 8f8fc6200c
commit 1dcaef2ce7
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@
</div>
<% if test.status.to_i == -2 %>
<div class="ProResultCon ">
<%= test.results.first %>
<%= test.results.first.to_s.force_encoding("UTF-8") %>
</div>
<% else %>
<div class="ProResultTable">

View File

@ -147,7 +147,7 @@
<div class="cl"></div>
</div>
<% if test.status.to_i == -2 %>
<div class="ProResultCon"><pre><%= test.results.first %></pre></div>
<div class="ProResultCon"><pre><%= test.results.first.to_s.force_encoding("UTF-8") %></pre></div>
<% else %>
<div class="ProResultTable " >
<ul class="ProResultUl " >