Default encodings for repository files can now be set in application settings (Admin -> Settings -> Repositories encodings).

These encodings are used to convert files content and diff to UTF-8 so that they're properly displayed.
Multiple values are allowed (comma separated).

git-svn-id: http://redmine.rubyforge.org/svn/trunk@814 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2007-10-07 15:21:40 +00:00
parent bb724e75c0
commit cdb2781b48
20 changed files with 42 additions and 6 deletions
+4 -4
View File
@@ -34,13 +34,13 @@
<%= table_file[key].nb_line_left %>
</th>
<td class="line-code <%= table_file[key].type_diff_left %>">
<pre><%= table_file[key].line_left %></pre>
<pre><%=to_utf8 table_file[key].line_left %></pre>
</td>
<th class="line-num">
<%= table_file[key].nb_line_right %>
</th>
<td class="line-code <%= table_file[key].type_diff_right %>">
<pre><%= table_file[key].line_right %></pre>
<pre><%=to_utf8 table_file[key].line_right %></pre>
</td>
</tr>
<% end %>
@@ -72,11 +72,11 @@
</th>
<% if table_file[key].line_left.empty? %>
<td class="line-code <%= table_file[key].type_diff_right %>">
<pre><%= table_file[key].line_right %></pre>
<pre><%=to_utf8 table_file[key].line_right %></pre>
</td>
<% else %>
<td class="line-code <%= table_file[key].type_diff_left %>">
<pre><%= table_file[key].line_left %></pre>
<pre><%=to_utf8 table_file[key].line_left %></pre>
</td>
<% end %>
</tr>