Re: PHP and Japanese
| From: | Jon Lind | Date: | Mon, 17 Jun 2002 16:12:31 +0000 |
| Subject: | Re: PHP and Japanese | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-102534@lists.php.net to get a copy of this message | ||
And another thing. In what format should I save japanese text in to get the
best result in a MySQL database?
I have to save japanses text in a database, display it on a site and edit
the text again, i also have to serach trought the text with php.. Anyone who
could help me?
/ Jon
"Jon Lind" <jon.lind@cycore.com> wrote in message
news:20020617151732.61340.qmail@pb1.pair.com...
> Hi,
> I'm working on a site that has to bee in several diffrent languages and
have
> some questions about PHP and japanese.
>
> When i POST a form with japanese signs and then put the data direct to the
> database it will look like this in mysql:
> 三洋セӦ
>
> But if i change the charset in HTML to Shift_JIS it will look like this:
> ZO-mfZ[f<fX&f}[fefBf"fOS"Z®?
>
> ....and thats the way i want it. But if the user change the encode type in
> his/her browser the string will bee like the first exempel again. Is there
> any way to prevent this?
>
> Regards Jon
>
>
>