I have some problems with utf-8 configuration with my blog
o Typo 4.0
o database collation set to utf8_unicode_ci (database and all the
o database.yml contains “encoding:utf8”
o database content is utf8 (checked via export and Vi)
o Typo seems to send response header Content-Type=“text/html;
o I manually added a before_filter to application.rb with the on line:
@headers[“Content-Type”] = “text/html;charset=UTF-8”
I did this after the problem occured the first time, but it seems to be
Now I have the strange effect that after some days/weeks all special
characters (especially german umlauts)
are displayed encoded incorrectly. It looks very ugly and
found out that the following
o sweep the Typo cache
o force fastcgi process to restart
Sometimes I have to do both twice.
Has anybody encountered similar effects? Is there a known bug I am not
Any help is extremely appreciated.
Thanks in advance.