| <%= line.nb_line_left %> |
- <%=to_utf8 line.html_line_left %>
+ <%= Redmine::CodesetUtil.to_utf8_by_setting(line.html_line_left) %>
|
<%= line.nb_line_right %> |
- <%=to_utf8 line.html_line_right %>
+ <%= Redmine::CodesetUtil.to_utf8_by_setting(line.html_line_right) %>
|
<% end -%>
@@ -33,7 +37,11 @@
<% else -%>
-| <%=h(to_utf8(table_file.file_name)) %> |
+
+ |
+ <%= h(Redmine::CodesetUtil.to_utf8_by_setting(table_file.file_name)) %>
+ |
+
<% table_file.each_line do |spacing, line| %>
@@ -46,7 +54,7 @@
<%= line.nb_line_left %> |
<%= line.nb_line_right %> |
- <%=to_utf8 line.html_line %>
+ <%= Redmine::CodesetUtil.to_utf8_by_setting(line.html_line) %>
|
<% end -%>
diff --git a/app/views/common/_file.html.erb b/app/views/common/_file.html.erb
index db00c0617..418073efa 100644
--- a/app/views/common/_file.html.erb
+++ b/app/views/common/_file.html.erb
@@ -2,7 +2,7 @@
<% line_num = 1 %>
-<% syntax_highlight(filename, to_utf8(content)).each_line do |line| %>
+<% syntax_highlight(filename, Redmine::CodesetUtil.to_utf8_by_setting(content)).each_line do |line| %>
<%= line_num %>
diff --git a/app/views/repositories/annotate.html.erb b/app/views/repositories/annotate.html.erb
index a9fe85f12..444ae2a3a 100644
--- a/app/views/repositories/annotate.html.erb
+++ b/app/views/repositories/annotate.html.erb
@@ -14,7 +14,7 @@
<% line_num = 1 %>
- <% syntax_highlight(@path, to_utf8(@annotate.content)).each_line do |line| %>
+ <% syntax_highlight(@path, Redmine::CodesetUtil.to_utf8_by_setting(@annotate.content)).each_line do |line| %>
<% revision = @annotate.revisions[line_num - 1] %>
| <%= line_num %> |
|