note 97216 deleted from function.explode by salathe

From: Date: Mon, 21 Sep 2020 14:48:43 +0000
Subject: note 97216 deleted from function.explode by salathe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-215322@lists.php.net to get a copy of this message
Note Submitter: locoluis at gmail dot com ---- 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.

« previous php.notes (#215322) next »