scm: add feature of per project repository log encoding setting (#1735).

Subversion, Mercurial and Git supports UTF-8 log.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4982 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA
2011-03-01 10:27:30 +00:00
parent c09b6edaf4
commit 5f5dec16f2
14 changed files with 63 additions and 34 deletions
+1 -1
View File
@@ -191,7 +191,7 @@ class Repository < ActiveRecord::Base
end
def repo_log_encoding
encoding = Setting.commit_logs_encoding.to_s.strip
encoding = log_encoding.to_s.strip
encoding.blank? ? 'UTF-8' : encoding
end