Japanese characters PHP & MySQL

From: Date: Wed, 16 Apr 2003 09:07:39 +0000
Subject: Japanese characters PHP & MySQL
Groups: php.i18n 
Request: Send a blank email to php-i18n+get-537@lists.php.net to get a copy of this message
OK, I am right about now ready to throw the PC across the office!! I have developed similar applications to what I am trying to do right now and have never experienced the problem I am having.......... I am making an intranet site with the following Apache 1.3.26 PHP 4.2.3 Adodb 3.4 for PHP MySQL 4.0 (The last site like this I made was the same except Adodb 2.4 & MSAccess instead of MySQL) In my PHP.ini file I have the following [mbstring] mbstring.internal_encoding=EUC-JP mbstring.encoding_translation=on mbstring.http_input=auto mbstring.http_output=SJIS mbstring.detect_order=auto mbstring.substitute_character=none; and on each intranet page <meta http-equiv=\"Content-Type\" content=\"text/html; charset=Shift_JIS\"> I have a form that accepts mostly text input that then inserts the data into MySQL. When I type the input on the form - it all looks fine. When I output the insert statement from the php code all the Kanji has become katakana (however not the same words). This same output is also sent in an email. The japanese I have typed in the code for the $message string looks fine but any variable that was suppossed to be Japanese ends up as ?????. Am really stumped here as this PHP configuration caused me no probs on previous sites !? Is it MySQL related ?? But I print the insert statement before anything happens with MySQL ANY advice would be much appreciated. Thanks Claire ------------------------------------------------ 松下電工株式会社 品質部 品質企画推進グループ クレア ヘクター Claire Hector Matsushita Electric Works Ltd. Quality Management System Group Corporate Quality Management E-mail: hector@cqad.mew.co.jp Notes: 44578@ainet.mew.co.jp MIC:7-711-2470 外線(phone):+81-6-6908-6803 FAX:7-711-2479 外線(FAX) :+81-6-6906-2202 ------------------------------------------------

« previous php.i18n (#537) next »