Forum OpenACS Development: Default charset in config.tcl

Collapse
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          127.0.0.1

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.

Collapse
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 http://aolserver.com/docs/admin/config-reference.tcl.txt (or an updated version of it) in a comment at the top of the file?