Small encoding fix for bad apache default behaviour

2006-10-13 11:28:49 PST

Tags: ,

If you read planet.mindstab.net you'll have noticed from time to time bizarre text degradation, bad characters showing up or other languages being represented as gibberish. I finally got tired of it so I googled for the answer. And I found it. It's an encoding error. Apache has a bad default and XHTML insisting on a better choice doesn't seem to override it.

The solution? In apache's httpd.conf, change 'AddDefaultCharset ISO-8859-1' to 'AddDefaultCharset utf8'. That's it. planet.mindstab.net looks much better now.

Leave a Reply

Valid XHTML 1.0!
Valid CSS!
Mindstab.net is proudly powered by WordPress
Entries (RSS) and Comments (RSS).
20 queries. 0.295 seconds.