note 89691 added to function.str-split

From: Date: Thu, 19 Mar 2009 14:46:43 +0000
Subject: note 89691 added to function.str-split
Groups: php.notes 
Request: Send a blank email to php-notes+get-152143@lists.php.net to get a copy of this message
For those it may concern: We encountered trubble when trying to str_split a UTF-8 encoded string, containing such Swedish letters as å, å and ö. It seems that this function splits according to byte-length and not character length. So if the letter "Å" takes 2 bytes, then str_split() will only return the first bite of the character "Å". We ain't 100% sure that this is the case but this was anyhow the result we got. So we used the multi-byte functions instead. ---- Server IP: 80.67.2.2 Probable Submitter: 82.182.53.60 ---- Manual Page -- http://www.php.net/manual/en/function.str-split.php Edit -- https://master.php.net/note/edit/89691 Del: integrated -- https://master.php.net/note/delete/89691/integrated Del: useless -- https://master.php.net/note/delete/89691/useless Del: bad code -- https://master.php.net/note/delete/89691/bad+code Del: spam -- https://master.php.net/note/delete/89691/spam Del: non-english -- https://master.php.net/note/delete/89691/non-english Del: in docs -- https://master.php.net/note/delete/89691/in+docs Del: other reasons-- https://master.php.net/note/delete/89691 Reject -- https://master.php.net/note/reject/89691 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#152143) next »