Re: What is the use of "unicode.semantics" in PHP 6?

From: Date: Mon, 09 Jul 2007 08:07:08 +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 14  Groups: php.internals 
Request: Send a blank email to internals+get-30651@lists.php.net to get a copy of this message
>>>> Unicode code points can be defined with \u, but PHP6 breaks >>>> existing octal and hex escape sequences. >> >> I don't understand what this means... > > I think I know... > > I have code like this, somewhere: > > if (preg_match("|[\xF0-\xFF]|", $data)){ > $data = un_microsuck($data); > } > > un_microsuck() basically detects and converts any of the goof-ball > extended ASCII from MS products (Word, Outlook, etc) to an HTML > equivalent character. > > But now \xF0 isn't going to be ASCII 128 anymore, is it? \xF0 never was ASCII. ASCII (ISO-646) is 7bit character set. \xF0 is decimal 240. It is 8bit. > Or maybe \xF0 will "work" but the octal \360 won't? Are you sure that you can't do that by setting unicode.something_encoding to iso-8859-1 or windows-1252? -- Tomas

« previous php.internals (#30651) next »