Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79150 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 51882 invoked from network); 25 Nov 2014 10:00:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Nov 2014 10:00:38 -0000 Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 198.187.29.245 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 198.187.29.245 imap11-3.ox.privateemail.com Received: from [198.187.29.245] ([198.187.29.245:49291] helo=imap11-3.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 78/71-40624-44354745 for ; Tue, 25 Nov 2014 05:00:38 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id 81FE68800D5; Tue, 25 Nov 2014 05:00:34 -0500 (EST) X-Virus-Scanned: Debian amavisd-new at imap11.ox.privateemail.com Received: from mail.privateemail.com ([127.0.0.1]) by localhost (imap11.ox.privateemail.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id CQTZzVd7mi_d; Tue, 25 Nov 2014 05:00:34 -0500 (EST) Received: from [137.50.28.227] (oa-res-28-227.wireless.abdn.ac.uk [137.50.28.227]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.privateemail.com (Postfix) with ESMTPSA id 4FC0C8800DB; Tue, 25 Nov 2014 05:00:32 -0500 (EST) References: Mime-Version: 1.0 (1.0) In-Reply-To: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-ID: <24EE758F-BF8F-4AE9-B793-20739CD9875D@ajf.me> Cc: PHP Internals X-Mailer: iPhone Mail (12B435) Date: Tue, 25 Nov 2014 10:00:29 +0000 To: Dmitry Stogov Subject: Re: [PHP-DEV] [RFC] Unicode Escape Syntax From: ajf@ajf.me (Andrea Faulds) > On 25 Nov 2014, at 08:33, Dmitry Stogov wrote: >=20 > May be I misunderstood something, but why to introduce unicode escapes if P= HP engine doesn't support Unicode. We don't have Unicode strings which are made of codepoints rather than bytes= , sure. But we do usually treat these strings as UTF-8. The idea of doing th= is in a language without Unicode strings isn't new, C/C++ have the u8"" synt= ax for making UTF-8 strings. > Always converting such escapes into UTF-8 encoding, doesn't make any sense= for people who use other encodings for output, databases, etc. If you're using other encodings, why do you want to use a Unicode codepoints= ? Most Unicode codepoints will not supported by another character set. -- Andrea Faulds http://ajf.me/=