Re: substr and UTF-8

From: Date: Wed, 30 Aug 2006 16:45:20 +0000
Subject: Re: substr and UTF-8
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-241243@lists.php.net to get a copy of this message
On Wed, 30 Aug 2006 21:46:18 +0700 "Peter Lauri" <lists@dwsasia.com> wrote: > function is_utf8_start($b) { > return (($b & 0x80) == 0) || ($b & 0x40); > } > [/snip] > > :) I think I will go with the mb_substr function, it works for me :) Yeah, I guess that's the right thing to do. Otherwise, in a year you won't remember what the cryptic masking is all about. Mike -- Michael B Allen PHP Active Directory SSO http://www.ioplex.com/

« previous php.general (#241243) next »