Hi All,
I have set up apache/php for Japanese. I have set it up correctly, I believe, but, am having trouble. It seems that the DefaultCharset setting in apache is UTF-8, as all pages are being rendered as such. But, I can't find anything in httpd.conf to reflect that. Below are my php.ini settings.
mbstring.detect_order auto
mbstring.encoding_translation On
mbstring.func_overload 0
mbstring.http_input Auto
mbstring.http_output SJIS
mbstring.internal_encoding SJIS
mbstring.language Japanese
mbstring.substitute_character no value
As you can see, internal_encoding and http_output are both set to SJIS as well as mbstring.language being set to Japanese. Now, here are the settings in httpd.conf
# AddDefaultCharset Shift_JIS ///I added this myself..is it correct..? AddCharset ISO-8859-1 .iso8859-1 .latin1 AddCharset ISO-8859-2 .iso8859-2 .latin2 .cen AddCharset ISO-8859-3 .iso8859-3 .latin3 AddCharset ISO-8859-4 .iso8859-4 .latin4 AddCharset ISO-8859-5 .iso8859-5 .latin5 .cyr .iso-ru AddCharset ISO-8859-6 .iso8859-6 .latin6 .arb AddCharset ISO-8859-7 .iso8859-7 .latin7 .grk AddCharset ISO-8859-8 .iso8859-8 .latin8 .heb AddCharset ISO-8859-9 .iso8859-9 .latin9 .trk AddCharset ISO-2022-JP .iso2022-jp .jis AddCharset ISO-2022-KR .iso2022-kr .kis AddCharset ISO-2022-CN .iso2022-cn .cis AddCharset Big5 .Big5 .big5 # For russian, more than one charset is used (depends on client, mostly): AddCharset WINDOWS-1251 .cp-1251 .win-1251 AddCharset CP866 .cp866 AddCharset KOI8-r .koi8-r .koi8-ru AddCharset KOI8-ru .koi8-uk .ua AddCharset ISO-10646-UCS-2 .ucs2 AddCharset ISO-10646-UCS-4 .ucs4 AddCharset UTF-8 .utf8
Can anyone see what is wrong..? Cheers.
Mark Sargent.