Forum OpenACS Development: Default charset in config.tcl

Posted by Malte Sussdorff on
Could we add parameters for the charset into config.tcl by default? This would help new users installing the system.

Here is what I suggest to add in the ns/parameters section:

ns_param  HackContentType    1
ns_param  URLCharset        utf-8
ns_param  OutputCharset      utf-8
ns_param  HttpOpenCharset    utf-8
ns_param  MailHost

I choose UTF-8, because this is what we store the catalog files in usually and it is safe to assume that modern browsers understand UTF-8 at the moment. At least safe enough for new users not to be intimidated when trying to install the Arabic version and not seeing their characters displayed correctly.

MailHost has been added for the convenience of people not knowing that it is possible to use a different mailserver.

I did not put this up as a bug/patch, as I'd like to solicit some feedback first.

Posted by Jamie Rasmussen on
This seems like a good addition to me.  smtphost will take precedence over mailhost, so you might want to use that instead.  It would be great if there was a short comment explaining what the param controls, and/or perhaps a link to (or an updated version of it) in a comment at the top of the file?