Re: raw-unicode-escape encoding

[email protected] (Martin v. Loewis)
Newsgroups gmane.comp.python.internationalization
Message-ID <[email protected]>
David Goodger <[email protected]> writes:

> >> If I'm not mistaken, '\xa7' is *not* the same as '\u00a7'
> > 
> > You are mistaken.
> 
> Would I still be mistaken if I put it like this: '\xa7' is not the same as
> u'\u00a7'? (Note the '' and u''.) That's what the raw-unicode-escape coded
> is doing.

It depends on the meaning of "is the same". If you compare the text,
\xa7 is different from \xA7, which is different from \u00A7. In the
context of raw-unicode-escape, they are the same - both are used to
identify Unicode characters, and they identify the same character
(whether with a lower or uppercase letter, and whether in the \x, \u,
or \U notation).

Regards,
Martin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.