Re: addslashes(): Is it multi-byte safe?
| From: | Jean-Christian Imbeault | Date: | Mon, 03 Mar 2003 06:02:39 +0000 |
| Subject: | Re: addslashes(): Is it multi-byte safe? | ||
| References: | 1 2 | Groups: | php.general php.i18n |
| Request: | Send a blank email to php-general+get-137855@lists.php.net to get a copy of this message | ||
Moriyoshi Koizumi wrote:
You can avoid this issue by configuring a PHP build with --enable-zend-multibyte option and set mbstring.script_encoding to SJIS.Or better yet, make sure that all pages are in EUC-JP and use that for internal encoding too, right :) And also translate all user input to internal encoding by setting encoding_translation = On. Doing those two things should let me use the regular PHP addslashes(). Jc