2003年12月02日(火)の16時36分に
Jean-Christian IMbeault 曰く:
> David Emery wrote:
> > 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\".
> >
> > There are other characters in SJIS that cause similar problems too.
> > Setting EUC as the internal encoding should fix it.
>
> Ok, can you explain why setting the internal encoding to EUC fix this
> problem? It doesn't seem like it should.
>
> Also when I ran this test my internal encoding was EUC ...
Hmmm, that's kinda weird. The idea is that with the internal encoding
set to EUC (i.e. mbstring.http_input = auto; mbstring.http_output =
SJIS;, mbstring.internal_encoding = EUC-JP;), PHP will automatically
convert the incoming post/get data to EUC for you, and convert your
output back to SJIS for browsers like keitai, etc that prefer that, and
so you never have to deal with the evil SJIS inside your scripts.
Could it be that the conversion somehow isn't happening?
>
> Thanks,
>
> Jean-Christian Imbeault
--
-dave
--
PHP Internationalization Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php