Re: addslashes(): Is it multi-byte safe?
| From: | Moriyoshi Koizumi | Date: | Sat, 01 Mar 2003 11:41:06 +0000 |
| Subject: | Re: addslashes(): Is it multi-byte safe? | ||
| References: | 1 | Groups: | php.general php.i18n |
| Request: | Send a blank email to php-general+get-137680@lists.php.net to get a copy of this message | ||
Jean-Christian Imbeault <jc@mega-bucks.co.jp> wrote:
> Is addslashes() multi-byte safe?
>
> I will bu sing it to escape multi-byte input and wouldn't want it to
> mangle anything...
Partially yes.
Strings encoded in GB2312(CP936), big5, Shift_JIS are known to be
clobbered by addslashes().
UTF-8, EUC-JP, EUC-KR, EUC-CN and EUC-TW are not affected.
Moriyoshi