NYCPHP Meetup

NYPHP.org

[nycphp-talk] Charsets are still driving me nuts

John Campbell jcampbell1 at gmail.com
Wed Mar 5 19:25:31 EST 2008


2008/3/5 Cliff Hirsch <cliff at pinestream.com>:
> Is there a downside to using utf-8?

No, but there are issues with some string functions.  In php4/5
functions like substr() operate on bytes, and may break UTF-8 strings
that contain multibyte characters.  I'd search your code for things
like "substr" and "pos", and make sure they are not operating on
userdata in an unsafe way.

see:
http://www.phpwact.org/php/i18n/utf-8

Regards,
John Campbell



More information about the talk mailing list