##// END OF EJS Templates
scm: use upcase to compare encoding name "UTF-8" in log converting....
Toshi MARUYAMA -
r5255:cae3fcce54bd
parent child
Show More
@@ -263,7 +263,7 class Changeset < ActiveRecord::Base
263 end
263 end
264 enc = encoding.blank? ? "UTF-8" : encoding
264 enc = encoding.blank? ? "UTF-8" : encoding
265 if str.respond_to?(:force_encoding)
265 if str.respond_to?(:force_encoding)
266 if enc != "UTF-8"
266 if enc.upcase != "UTF-8"
267 str.force_encoding(enc)
267 str.force_encoding(enc)
268 str = str.encode("UTF-8", :invalid => :replace,
268 str = str.encode("UTF-8", :invalid => :replace,
269 :undef => :replace, :replace => '?')
269 :undef => :replace, :replace => '?')
General Comments 0
You need to be logged in to leave comments. Login now