Re: Japanese katakana "SO" in SJIS gives problems.

David Emery <[email protected]>
Newsgroups gmane.comp.php.internationalization
Message-ID <1069244685.26235.2247.camel@hat>
20031119()1927 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

-- 
PHP Internationalization Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.