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:
Toshi MARUYAMA 2012-10-28 11:39:43 +00:00
parent 123d2b318f
commit 625eebb720
1 changed files with 1 additions and 1 deletions

View File

@ -263,7 +263,7 @@ module Redmine
if str.respond_to?(:force_encoding) if str.respond_to?(:force_encoding)
str.force_encoding(from) str.force_encoding(from)
begin begin
s = str.encode(to) str.encode(to)
rescue Exception => err rescue Exception => err
logger.error("failed to convert from #{from} to #{to}. #{err}") logger.error("failed to convert from #{from} to #{to}. #{err}")
nil nil