note 72596 rejected from function.strlen by nlopess

From: Date: Thu, 25 Jan 2007 14:27:46 +0000
Subject: note 72596 rejected from function.strlen by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-122193@lists.php.net to get a copy of this message
Note Submitter: egmont at uhulinux dot hu ---- Paolo, are you sure about strlen() counting characters? Could you please show me an example? For me it seems that strlen() always count bytes, no matter what the current locale or mb_internal_encoding is, just as its C counterpart does. If you want to count characters then you have to set the encoding with mb_internal_encoding() and then use mb_strlen().

« previous php.notes (#122193) next »