Re: Shift_JIS Character Set
| From: | Jason Wong | Date: | Fri, 12 Dec 2003 06:24:32 +0000 |
| Subject: | Re: Shift_JIS Character Set | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-32012@lists.php.net to get a copy of this message | ||
On Friday 12 December 2003 13:47, Ng Hwee Hwee wrote:
> i've read the following comment on PHP.net and found it very troubling
> because my database has Shift_JIS japanese words and my forms allow
> japanese input as well, so, does anyone know how can I stripslashes
> correctly when it comes to Japanese text? thanx thanx!
Normally you would not need to use stripslashes() anyway. What are you trying
to do?
> hash at samurai dot fm
> 01-Dec-2003 10:34
> Might I warn readers that they should be vary careful with the use of
> stripslashes on Japanese text. The shift_jis character set includes a
> number of two-byte code charcters that contain the hex-value 0x5c
> (backslash) which will get stripped by this function thus garbling those
> characters.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-db
------------------------------------------
/*
I've never been drunk, but often I've been overserved.
-- George Gobel
*/