@@ -263,7 +263,7 class Changeset < ActiveRecord::Base | |||
|
263 | 263 | end |
|
264 | 264 | enc = encoding.blank? ? "UTF-8" : encoding |
|
265 | 265 | if str.respond_to?(:force_encoding) |
|
266 | if enc != "UTF-8" | |
|
266 | if enc.upcase != "UTF-8" | |
|
267 | 267 | str.force_encoding(enc) |
|
268 | 268 | str = str.encode("UTF-8", :invalid => :replace, |
|
269 | 269 | :undef => :replace, :replace => '?') |
General Comments 0
You need to be logged in to leave comments.
Login now