Forum OpenACS Q&A: Re: ADP pages UTF-8 configuration problem

Collapse
Posted by Emmanuelle Raffenne on
Hi,

The mimetype section params don't use the right syntax, it should be:

ns_section "ns/mimetypes"
ns_param default "*/*"
ns_param .adp "text/html; charset=utf-8"
ns_param .html "text/html; charset=utf-8"
ns_param .txt "text/plain; charset=utf-8"

Although, AFAIK, it's not necessary to explicitely set it for adp files, they are served using utf-8 as long as the defaultcharset and outputcharset are set to "utf-8".

On the other side, the urlcharset, inputcharset and ouputcharset usually are in the ns/parameters section. Here's what I have in mine:

ns_section ns/parameters
...
...
ns_param HackContentType 1
ns_param DefaultCharset utf-8
ns_param HttpOpenCharset utf-8
ns_param OutputCharset utf-8
ns_param URLCharset utf-8

Hope that will help.