@@ -263,7 +263,7 module Redmine | |||||
263 | if str.respond_to?(:force_encoding) |
|
263 | if str.respond_to?(:force_encoding) | |
264 | str.force_encoding(from) |
|
264 | str.force_encoding(from) | |
265 | begin |
|
265 | begin | |
266 |
|
|
266 | str.encode(to) | |
267 | rescue Exception => err |
|
267 | rescue Exception => err | |
268 | logger.error("failed to convert from #{from} to #{to}. #{err}") |
|
268 | logger.error("failed to convert from #{from} to #{to}. #{err}") | |
269 | nil |
|
269 | nil |
General Comments 0
You need to be logged in to leave comments.
Login now