How can a UTF-8 string can be converted to an array of Bytes?
| From: | Office) | Date: | Wed, 25 May 2011 12:15:19 +0000 |
| Subject: | How can a UTF-8 string can be converted to an array of Bytes? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-313151@lists.php.net to get a copy of this message | ||
Hi,
Since a UTF-8 is a multi-bytes mechanism I get for 2 or 3 bytes UTF-8 encoded character a single character
How can it be break into the REAL bytes array that represent the UTF-8 string
and how can we reassembled the bytes array back to UTF-8?
--
Best Regards,
*Eli Orr*
CTO & Founder
*LogoDial Ltd.*
__