Forum OpenACS Development: How to set charset in Content-Type header?

Have a glance at: http://na.cph02.collaboraid.net/na/1034

The page is in UTF-8. I've added the following under ns/parameters in the AOLserver config file:

ns_param   OutputCharset      utf-8
ns_param   HackContentType    true

However, AOLserver still insists on writing this in the HTTP header:

Content-Type: text/html; charset=iso-8859-1

Where can I set the site to UTF-8? A request processor parameter perhaps? But it eludes me!

Help. We're running AOLserver/3.3.1+ad13, and a recent checkout of the oacs-4-6 branch.

Collapse
Posted by Jeff Davis on
Here was what was in the acs-lang doc (for shift_jis)
ns_section ns/parameters
ns_param HackContentType 1
ns_param URLCharset shift_jis
ns_param OutputCharset shift_jis
ns_param HttpOpenCharset shift_jis
You might try setting the couple you are missing.

Is also has things like this:

ns_section ns/mimetypes
...
ns_param .tcl "text/html; charset=shift_jis"
ns_param .adp "text/html; charset=shift_jis"
but I am not sure what that does in the context of the request processor.