Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79161 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72557 invoked from network); 25 Nov 2014 11:37:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Nov 2014 11:37:22 -0000 Authentication-Results: pb1.pair.com header.from=cmbecker69@gmx.de; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=cmbecker69@gmx.de; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmx.de designates 212.227.15.19 as permitted sender) X-PHP-List-Original-Sender: cmbecker69@gmx.de X-Host-Fingerprint: 212.227.15.19 mout.gmx.net Received: from [212.227.15.19] ([212.227.15.19:60225] helo=mout.gmx.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 59/A5-40624-FE964745 for ; Tue, 25 Nov 2014 06:37:20 -0500 Received: from [192.168.0.100] ([91.67.244.80]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0LoVOE-1YQvYc04tu-00gWtb; Tue, 25 Nov 2014 12:37:16 +0100 Message-ID: <547469EF.4040404@gmx.de> Date: Tue, 25 Nov 2014 12:37:19 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: ivan.enderlin@hoa-project.net, internals@lists.php.net References: <54742FBD.802@hoa-project.net> In-Reply-To: <54742FBD.802@hoa-project.net> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:FQT1mpZp2IOMf2jLKof2wFiY6qY/IwzmbfqS0DRS8gEugg4VNbe 7h/NPl9r+wFOMYsRV8+mz/fpZeslSm2QdSQ4DTcM0Aanf7qTgB/+sL8YBHyvNTfssDEmd/i uP2GGZrw1CkkZ3g/NCYeHm+GYT0T0ix757sz026R1xFxWYzDyK1V+b6aMgv1crhJiUrzxs/ Zovg1OHtULbFHYrKlP5lQ== X-UI-Out-Filterresults: notjunk:1; Subject: Re: [PHP-DEV] [RFC] Unicode Escape Syntax From: cmbecker69@gmx.de (Christoph Becker) Ivan Enderlin @ Hoa wrote: > Le 24/11/2014 23:09, Andrea Faulds a écrit : >> Good evening, >> >> Here’s a new RFC: https://wiki.php.net/rfc/unicode_escape >> >> It has a rationale section explaining why certain decisions were made, >> that I’d recommend you read in full. > Excellent RFC, thank you for this proposal. > I would suggest this talk > https://speakerdeck.com/mathiasbynens/hacking-with-unicode (you might > already know) but interesting concepts and limitations of current > Unicode implementations are mentioned. > The usage of `\u{…}` fixes most limitations and I could not be more > agree with that notation! I don't see that the proposed \u{...} notation fixes any limitation. Its only advantage would be slightly better readability opposed to inserting the desired UTF-8 byte sequences as octal or hexadecimal escapes. For instance, all of the following would print Ä (in an UTF-8 context): echo "\u{00C4}"; echo "\xC3\x84"; echo "\303\204"; -- Christoph M. Becker