Re: Japanese katakana "SO" in SJIS gives problems.
| From: | David Emery | Date: | Wed, 19 Nov 2003 12:24:45 +0000 |
| Subject: | Re: Japanese katakana "SO" in SJIS gives problems. | ||
| References: | 1 | Groups: | php.i18n |
| Request: | Send a blank email to php-i18n+get-634@lists.php.net to get a copy of this message | ||
2003年11月19日(水)の19時27分に Jean-Christian IMbeault 曰く:
> I'm having trouble with POST form data being passed to me in Japanese.
> The incoming data is in SJIS and if someone enters the japanese katakana
> "SO" it somehow ends up being turned up in to "SO\".
>
> Here is an example:
>
> User enters "ソ"
>
> PHP says the POST values is:
>
> POST['name'] = ソ\
>
> Where did that last character come from? This is a big problem for me if
> people enter words in katakana containing the character "SO". For
> example "software" gets an extra backslash inserted after the so ...
>
> Does anyone have a safe solution to this problem?
There are other characters in SJIS that cause similar problems too.
Setting EUC as the internal encoding should fix it.
>
> Thanks,
>
> Jean-Christian Imbeault
--
-dave