code cleanup scm_iconv (#12228)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10742 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
123d2b318f
commit
625eebb720
|
@ -263,7 +263,7 @@ module Redmine
|
|||
if str.respond_to?(:force_encoding)
|
||||
str.force_encoding(from)
|
||||
begin
|
||||
s = str.encode(to)
|
||||
str.encode(to)
|
||||
rescue Exception => err
|
||||
logger.error("failed to convert from #{from} to #{to}. #{err}")
|
||||
nil
|
||||
|
|
Loading…
Reference in New Issue