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 committed 2007-10-07 15:21:40 +00:00
1 parent bb724e75c0
commit cdb2781b48
20 files changed
+42 -6

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@
</thead>
<tbody>
<% line_num = 1 %>
<% syntax_highlight(@path, @content).each_line do |line| %>
<% syntax_highlight(@path, to_utf8(@content)).each_line do |line| %>
<tr>
<th class="line-num"><%= line_num %></th>
<td class="line-code"><pre><%= line %></pre></td>