Hi, we have a web site in English/Japanese and the Japanese portion is not working quite right. I've read several threads here and tried many things, and hoping someone can tell me what we're doing wrong. RedHat 7.3, PHP 4.3.3, MySQL 3.23.55.
Apache/PHP settings as follows:
php_admin_flag output_buffering on
php_admin_flag zlib.output_compression off
php_admin_value output_handler mb_output_handler
php_admin_value mbstring.detect_order auto
php_admin_value mbstring.func_overload 0
php_admin_value mbstring.http_input auto
php_admin_value mbstring.http_output SJIS
php_admin_value mbstring.internal_encoding EUC-JP
php_admin_value mbstring.substitute_character none
Problem: FIRST japanese data entry works, but EDITING is turning Japanese into garbage ("mojibake" .. see, I have been reading the threads.. :-).
First time: we pull up our content management form, paste Japanese text into it. Hit "submit" and then go to the web page: the Japanese is correctly displayed. So, the form was correctly putting the Japanese into the MySQL database.
Then, to re-edit the page, we call up the form again. This time, some PHP fetches the Japanese from the database and shows it for editing, i.e. it sets the form's value to the text from the database (same text which is displaying correctly on the web site).
However, the Japanese displayed in the form (just a simple form input type=TEXT), is now garbage. If we hit "submit" to update it again, it also looks like garbage when we refresh the web page.
Somehow, when our form is fetching the Japanese for purposes of Re-Editing, it is becoming garbage. The initial POST seems to be correct.
I would really appreciate anyone's help, and can provide you with links to the site so you can see what is happening.
Thanks,
Andrew