Tiki and Chinese

Tags:


Original Title: TikiWiki : CharacterEncodingTrouble

 

My Tiki installation had problems with Chinese posting, or Unicode in general. Finally found what´s wrong … Did the first solution.





If Tiki on your server doesn´t look fine:


Some servers (like Apache with the default Debian config) adds a charset=iso-8859-1 to the Content-Type header. The browser (ex: Mozilla) first looks for a charset value in the Content-Type header and then for META tags, so the header overrides the META tag inserted by TikiWiki.

To solve this with Apache then either check that there is no option AddDefaultCharset iso-8859-1 in the httpd.conf file. Some distributions set AddDefaultCharset on in the httpd.conf for some security issues (see Apache Css Security), so keep in mind you can allways overset default settings in virtualhost directive in the httpd.conf file.

An other solution is to move the doc/htaccess in your TikiWiki installation to .htaccess and uncomment AddDefaultCharset utf-8 which will add the correct header for UTF-8 output.

Leave a Reply

If the above Image does not contain text, use this secure code: ZYC27BbO3