It seems that by default radiant/mongrel sens out HTTP headers with
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.
<?xml version="1.0" encoding="utf-8" ?>
in the layout doesn’t seem to make any difference.
It seems that by default radiant/mongrel sens out HTTP headers with
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.
<?xml version="1.0" encoding="utf-8" ?>
in the layout doesn’t seem to make any difference.
Any idea?
Try this in the head section of your layout:
Or go into application.rb, and add this as one of the before_filters:
def set_charset @headers[“Content-Type”] = “text/html; charset=utf-8”
end
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?
It seems that by default radiant/mongrel sens out HTTP headers with
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.
<?xml version="1.0" encoding="utf-8" ?>
in the layout doesn’t seem to make any difference.
Any idea?
Have you tried setting the content type and charset on the layout? There
is a new field for this in the latest version of Radiant.