Re: Japanese characters PHP & MySQL

From: Date: Wed, 16 Apr 2003 14:07:34 +0000
Subject: Re: Japanese characters PHP & MySQL
References: 1  Groups: php.i18n 
Request: Send a blank email to php-i18n+get-538@lists.php.net to get a copy of this message
Hi, First, you should avoid using Japanese characters in this list, as not all subscribers do read such charcters with their mailer. Claire Hector <hector@cqad.mew.co.jp> wrotschlafrig gewordene: > OK, I am right about now ready to throw the PC across the office!! Then, I'd rather see the photo of the PC thrown on the floor :-p > 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 You have to use 4.3.0 or later versions to handle Japanese texts in PHP correctly. > 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 Are you sure that output_handler=mb_output_handler is also speficied in your php.ini? If so, try setting mbstring.http_input to SJIS too. > mbstring.substitute_character=none; ^ The semicolon is not needed here. > 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 If the outputs have ended up with "????", then that's even unlikely a MySQL problem. Moriyoshi

« previous php.i18n (#538) next »