On 6/2/06, Ollivier R. email@example.com wrote:
It seems that by default radiant/mongrel sens out HTTP headers with
<?xml version="1.0" encoding="utf-8" ?>
charset=“ISO-8859-1” (the standard for text/html where as I want it to
send UTF-8 as all my pages are XHTML compliant and in UTF-8.
in the layout doesn’t seem to make any difference.
Try this in the head section of your layout:
Or go into application.rb, and add this as one of the before_filters:
@headers[“Content-Type”] = “text/html; charset=utf-8”
That will probably get overwritten next time you do an svn update on
the source tree. Maybe it’d be better to make a plugin… something
like lib/plugins/utf8/init.rb that just modified BaseBehavior and
forces it to send a utf8 header?