Re: PHP: Japanese: need advice for PHP/MySQL programming
| From: | David Emery | Date: | Fri, 05 Jul 2002 03:19:37 +0000 |
| Subject: | Re: PHP: Japanese: need advice for PHP/MySQL programming | ||
| References: | 1 | Groups: | php.i18n |
| Request: | Send a blank email to php-i18n+get-264@lists.php.net to get a copy of this message | ||
At 11:36 +0900 02.7.5, Jean-Christian Imbeault wrote:
Sorry to post such a general question but I couldn't find what I needed in the docs or on Google. I'm in the planning stages of japanese web site that will be using PHP/MySQL. I have never worked with PHP in any language other than english and I am worried that I will be facing many thought issued because of the many character set used in Japan. Can anyone point me to any reference, tutorials, mailing lists that I can read in order to best plan ahead? I still new at this so even basic things like how to receive japanese data into PHP or inputting japanese into MySQL are a mystery to me.Some general hints for a simple approach: -Make sure your PHP is compiled with the multibyte functions included - they aren't there by default. -Look through the multibyte string functions in the docs - there's some good info in there. -Use EUC-JP encoding internally -Output SJIS encoding -You can get by without changes to MySQL if you use EUC-JP encoding in scripts and in the DB. HTH, Dave