logo       

Re: Escaping the escape (Was: I-D ACTION:draft-klensin-unicode-escapes-00.t: msg#00019

ietf.apps-discuss

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

Stephane Bortzmeyer said:
>> To write the string "\u1234", you write "\u005Cu1234". Isn't that
>> obvious enough not to need stating?
>
> It was not obvious to me, I did not even think of it (\\u1234 seemed
> more reasonable).

Sorry, I was a bit terse there.

You can always do things by escaping the \ using the same notation; that
seemed obvious enough not to need stating.

I agree that \\ is easier to read, but it might not be compatible with
other uses of \ in the protocol this is going into. As such, it might be
seen as inappropriate to require it. However, we could add it as a MAY.

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




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise