Re: Escaping the escape (Was: I-D ACTION:draft-klensin-unicode-escapes-00.txt

"Clive D.W. Feather" <clive@demon.net> Mon, 22 January 2007 09:03 UTC

Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com) by megatron.ietf.org with esmtp (Exim 4.43) id 1H8v5i-0006t6-Qf; Mon, 22 Jan 2007 04:03:50 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1H8v5g-0006nj-Hd for discuss@apps.ietf.org; Mon, 22 Jan 2007 04:03:48 -0500
Received: from anchor-internal-1.mail.demon.net ([195.173.56.100]) by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1H8v5f-0000sq-3r for discuss@apps.ietf.org; Mon, 22 Jan 2007 04:03:48 -0500
Received: from finch-staff-1.server.demon.net (finch-staff-1.server.demon.net [193.195.224.1]) by anchor-internal-1.mail.demon.net with ESMTP� id l0M93juu010654Mon, 22 Jan 2007 09:03:46 GMT
Received: from clive by finch-staff-1.server.demon.net with local (Exim 3.36 #1) id 1H8v5d-000JJe-00; Mon, 22 Jan 2007 09:03:45 +0000
Date: Mon, 22 Jan 2007 09:03:45 +0000
From: "Clive D.W. Feather" <clive@demon.net>
To: Stephane Bortzmeyer <bortzmeyer@nic.fr>
Subject: Re: Escaping the escape (Was: I-D ACTION:draft-klensin-unicode-escapes-00.txt
Message-ID: <20070122090345.GK60599@finch-staff-1.thus.net>
References: <891E235E7A867F0DB506C90A@p3.JCK.COM> <20070121210642.GA10676@sources.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20070121210642.GA10676@sources.org>
User-Agent: Mutt/1.5.3i
X-Spam-Score: 0.0 (/)
X-Scan-Signature: de4f315c9369b71d7dd5909b42224370
Cc: discuss@apps.ietf.org, John C Klensin <klensin@jck.com>
X-BeenThere: discuss@apps.ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: general discussion of application-layer protocols <discuss.apps.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/discuss>, <mailto:discuss-request@apps.ietf.org?subject=unsubscribe>
List-Post: <mailto:discuss@apps.ietf.org>
List-Help: <mailto:discuss-request@apps.ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/discuss>, <mailto:discuss-request@apps.ietf.org?subject=subscribe>
Errors-To: discuss-bounces@apps.ietf.org

Stephane Bortzmeyer said:
> I may be blind but I do not see a discussion about how to escape the
> escape sequence. For instance, when discussing the XML standard
> (&#nnnn;), there is no mention that it requires a way to write a bare
> & (&amp;).
> 
> In the same way, if you use the \unnnn standard, how do you ensure
> that you can still write a real \u string if you want it?

To write the string "\u1234", you write "\u005Cu1234". Isn't that obvious
enough not to need stating?

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:    +44 20 8495 6138
Internet Expert     | Home:  <clive@davros.org>  | Fax:    +44 870 051 9937
Demon Internet      | WWW: http://www.davros.org | Mobile: +44 7973 377646
THUS plc            |                            |