I upgrade my application from Rails 2.3.5 to Rails 3.0.5. One issue in utf8 encoding makes me really confused:
In Rails 2.3.5 version, when I print a Japanese phrase, for example,
str = "保守性1"
p str
#output: => "\344\277\235\345\256\210\346\200\2471"`
Meanwhile, in Rails 3.0.5 version, the same code will return:
str = "保守性1"
p str
#output: => "保守性1"
I have googled alot but no result. Could you please figure out any possible reason for this issue?
I want to keep the same output as in Rails 2.3.5 version. Any idea is very much appreciated.
Thank you in advance.