Regular readers of Planet Identity may have already noticed that I recently fixed an annoying problem with character encoding. The HTML content is UTF-8, but Apache was indicating in the HTTP header that it was ISO-8859-1. This caused non-alphanumeric characters in many posts to appear as multiple ‘garbage’ characters. Telling Apache that the encoding is UTF-8 (by setting AddDefaultCharset utf-8 in the relevant “VirtualHost” section of the Apache configuration file) fixed the problem - even Tatsuo Kudo’s posts appear correctly, in Japanese (although I have to use Google Language Tools to figure them out ).
Thanks to David Edmondson (proprietor of Planet Sun) for the tip, and continued thanks to Stephen Lau for hosting Planet Identity.
Leave a Comment
Your email address will not be published. Required fields are marked *