Dear PHPers,
I have a mysql/php site.
The database content is retrieved correctly. I am using "EUC" for all my PHP files. The japanese that has been typed directly into the php files displays correctly when I view locally on my browser. But when I upload to the server and access the PHP file via the web. I find that the japanese that has been typed into the PHP displays inccorectly (mojibake).
I have created many tests to get japanese working with EUC. Only the database shows corectly.
The database resides on Linux server.
From all my testing I cannot display japanese text that has been typed directly into the PHP file.
I previously included this into the php.ini file to enable the display.
default_charset = EUC
mbstring.language = Japanese
mbstring.encoding_translation = On
mbstring.http_input = auto
mbstring.http_output = EUC
mbstring.internal_encoding = EUC
mbstring.substitute_character = none
but this did not work either. I have removed it.
I have also tried include this into my PHP scripts to
mb_http_output('EUC');
Any suggestions would be appreciated to display japanese text written
into the php so it does not display as mojibake as I am losing hair over this.
Regards
Daniel