META tag charset garbled if you specify the

Posted by: admin at 11 Monday 5th, 2008

A previous version of Apache by default AddDefaultCharset directive "ISO-8859-1 (Latin-European languages, French, German)" is specified.
Apache2.2 later, AddDefaultCharset default setting of this directive is not.
httpd.conf and fixes.
httpd.conf is usually located below.
 /usr/local/apache2/conf 
Or
 /usr/local/etc/apache2 

httpd.conf
 AddDefaultCharset  off 
However, in this case, the following pages all the charset must be specified.
 <META http-equiv=Content-Type content="text/html; charset=Shift_JIS"> 

All content is the same character coding (charset) in the charset you can also specify the following.
httpd.conf
 AddDefaultCharset  EUC-JP 

Whenever you finish a fix, Apache to restart.
 # /usr/local/apache2/bin/apachectl restart 
apachectl will pass through if you do not know how to install different versions and looks in the following way.
 # which apachectl