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
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php