[nycphp-talk] Charsets are still driving me nuts

Cliff Hirsch cliff at
Wed Mar 5 20:21:40 EST 2008

On 3/5/08 7:25 PM, "John Campbell" <jcampbell1 at> wrote:

> 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.
> see:

Doesn't the multibyte string extension overload these functions?

More information about the talk mailing list