From 1ded6ddf0485e2be000bd9f48bc7c407e246d29b Mon Sep 17 00:00:00 2001 From: cxt Date: Tue, 19 Apr 2016 13:03:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=A6=E7=94=9F=E6=97=A0=E6=B3=95=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E5=B7=B2=E6=8F=90=E4=BA=A4=E7=9A=84=E7=BC=96=E7=A8=8B?= =?UTF-8?q?=E4=BD=9C=E5=93=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/student_work/_programing_work_show.html.erb | 2 +- app/views/users/new_user_commit_homework.html.erb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/student_work/_programing_work_show.html.erb b/app/views/student_work/_programing_work_show.html.erb index becec239a..eb16dc807 100644 --- a/app/views/student_work/_programing_work_show.html.erb +++ b/app/views/student_work/_programing_work_show.html.erb @@ -69,7 +69,7 @@
<%=x["result"].force_encoding("UTF-8")%> 
正确输出: -
<%=x["output"]%>
+
<%=x["output"].force_encoding("UTF-8")%>
耗时:
<%=x["time_used"]==0?1:x["time_used"]%>毫秒
diff --git a/app/views/users/new_user_commit_homework.html.erb b/app/views/users/new_user_commit_homework.html.erb index e84b7a95e..1f8d3ca26 100644 --- a/app/views/users/new_user_commit_homework.html.erb +++ b/app/views/users/new_user_commit_homework.html.erb @@ -143,9 +143,9 @@ 测试错误! <% end %> 您的输出: -
<%=x["result"]%> 
+
<%=x["result"].force_encoding("UTF-8")%> 
正确输出: -
<%= x["output"] %>
+
<%= x["output"].force_encoding("UTF-8") %>
 耗时:
<%=x["time_used"]==0?1:x["time_used"]%>毫秒