I’m using mongrel_rails 0.3.12.4 to start a radiantcms site
(http://radiantcms.org/) and all the pages/snippets/layouts I’m using
are in utf-8. By default, mongrel sends “text/html” as content-type w/o
any indication of charset and browsers thus assume iso-8859-1 (as they
should).
Does it work with Webrick? If it is working with Webrick but not with
Mongrel then try adding:
to your page header. For reasons I haven’t bothered thinking about
this worked for me. Maybe it is more widely useful? Don’t know (I
find thinking about character encoding gives me a really bad
headache…)
On Sat, 2006-06-03 at 03:39 +0900, Ollivier R. wrote:
.html: text/html; charset=utf-8
Actually, Ollivier, there’s a bug in 0.3.12.4 where the mime types
aren’t picked up. If you can, use the pre-release which fixes this and
many other problems: