note 97216 added to function.explode

From: Date: Thu, 08 Apr 2010 16:02:46 +0000
Subject: note 97216 added to function.explode
Groups: php.notes 
Request: Send a blank email to php-notes+get-168033@lists.php.net to get a copy of this message
That with all stateful encodings that use bytes between 0x00 and 0x7f for something other than, say, encoding ASCII characters. Including GBK, BIG5, Shift-JIS etc. explode and other such PHP functions work on bytes, not characters. What you do is to convert the string to UTF-8 using iconv(), then explode, then go back to GBK. ---- Server IP: 190.54.16.132 Probable Submitter: 200.75.6.3 ---- Manual Page -- http://www.php.net/manual/en/function.explode.php Edit -- https://master.php.net/note/edit/97216 Del: integrated -- https://master.php.net/note/delete/97216/integrated Del: useless -- https://master.php.net/note/delete/97216/useless Del: bad code -- https://master.php.net/note/delete/97216/bad+code Del: spam -- https://master.php.net/note/delete/97216/spam Del: non-english -- https://master.php.net/note/delete/97216/non-english Del: in docs -- https://master.php.net/note/delete/97216/in+docs Del: other reasons-- https://master.php.net/note/delete/97216 Reject -- https://master.php.net/note/reject/97216 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#168033) next »