NYCPHP Meetup

[nycphp-talk] Charsets are still driving me nuts

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


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

> 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

Doesn't the multibyte string extension overload these functions?





More information about the talk mailing list