Fixed Encoding Problems on Planet Identity

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.
Comments:

Post a Comment:
Comments are closed for this entry.
About

superpat

Search

Archives
« July 2015
MonTueWedThuFriSatSun
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
  
       
Today