Re: What is the use of "unicode.semantics" in PHP 6?
| From: | Andrei Zmievski | Date: | Fri, 29 Jun 2007 17:42:31 +0000 |
| Subject: | Re: What is the use of "unicode.semantics" in PHP 6? | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-30368@lists.php.net to get a copy of this message | ||
It sounds like your libraries are definitely oriented towards working with binary strings, rather than Unicode strings. So, I am not sure why you have unicode.semantics turned on then. If you turn it off, you will get backwards compatibility with PHP 5. And if you do that, you can still create and work on Unicode strings, programmatically.
-Andrei
On Jun 29, 2007, at 2:01 AM, Tomas Kuliavas wrote:
If I write "\xA0", I expect one byte with A0 hex value and not 0xC2\xA0 (\u00A0). If I use \x80-\xFF range, I expect functions to match bytes and not only \u0080 - \u00FF Binary strings can do that, but they are not backwards compatible. In order to do same thing in PHP4/5 and PHP6, I'll have to move code into separate libraries.