From 1dcaef2ce7036ff4c9ba115c5caccff6338a7e9b Mon Sep 17 00:00:00 2001 From: cxt Date: Fri, 31 Mar 2017 14:25:54 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E7=A8=8B=E4=BD=9C=E4=B8=9A=E7=9A=84?= =?UTF-8?q?=E5=AD=97=E7=AC=A6=E9=9B=86=E9=97=AE=E9=A2=98?= 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 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/student_work/_programing_work_show.html.erb b/app/views/student_work/_programing_work_show.html.erb index 08d48509a..920f42131 100644 --- a/app/views/student_work/_programing_work_show.html.erb +++ b/app/views/student_work/_programing_work_show.html.erb @@ -52,7 +52,7 @@ <% if test.status.to_i == -2 %>
- <%= test.results.first %> + <%= test.results.first.to_s.force_encoding("UTF-8") %>
<% else %>
diff --git a/app/views/users/new_user_commit_homework.html.erb b/app/views/users/new_user_commit_homework.html.erb index 399eb4aae..3ac20f468 100644 --- a/app/views/users/new_user_commit_homework.html.erb +++ b/app/views/users/new_user_commit_homework.html.erb @@ -147,7 +147,7 @@
<% if test.status.to_i == -2 %> -
<%= test.results.first %>
+
<%= test.results.first.to_s.force_encoding("UTF-8") %>
<% else %>