Re: PHP Unicode extension in PHP6
| From: | Andrei Zmievski | Date: | Mon, 21 May 2007 17:10:46 +0000 |
| Subject: | Re: PHP Unicode extension in PHP6 | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-29630@lists.php.net to get a copy of this message | ||
This is by design. If you prefer to work with actual bytes, use binary strings or literals. In unicode strings \xC4 is actually a codepoint (UTF-16 codepoint) specifying character U+00C4.
-Andrei
On May 19, 2007, at 8:48 AM, Tomas Kuliavas wrote:
strlen("\xC4\x85") = 2. strlen((binary)"\xC4\x85") = 4. Not good. It is one character in utf-8.