Re: [VOTE][RFC] Unicode Codepoint Escape Syntax
| From: | Derick Rethans | Date: | Tue, 09 Dec 2014 16:54:29 +0000 |
| Subject: | Re: [VOTE][RFC] Unicode Codepoint Escape Syntax | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-79509@lists.php.net to get a copy of this message | ||
On Tue, 9 Dec 2014, Andrea Faulds wrote:
> I think \x{xxxx} is misleading anyway - \xXX is always
> single-byte/character, yet Unicode code points can’t be represented in
> PHP strings as single bytes when encoded in UTF-8 (unless they’re
> below U+0100, of course).
You mean below U+0080 surely? Only the "first 7 bits" can be represented
as a single byte with UTF-8. U+0080 is for example 0xC2 0x80 in UTF-8.
cheers,
Derick