[nycphp-talk] Charsets are still driving me nuts

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

2008/3/5 Cliff Hirsch <cliff at>:
> 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.


John Campbell

More information about the talk mailing list