The problem I am currently facing is that the Chinese characters that
are posted on my site which are encoded with UTF-8 become scrambled, but
not instantly. After a duration of time the characters screw up.
All my pages on the application are headed with
I attempted to use the solution provided on this page
http://www.artweb-design.de/2007/3/10/server-setup-mistakes-character-encoding
but it did not fix the problem.
I also attempted to use this solution,
, but obviously for .rhtml type files instead and encoded with
“text/html; ; charset=utf-8” to see if maybe it was mongrel that was
having problems. This did not work either.
The strings I am obtaining are from a database encoded with “utf8” and
in my database.yml file the encoding is set to utf8
Here are the versions I am using are:
ruby 1.8.7
rails 1.2.6
mongrel 1.1.3