[Python-Dev] unicode/string asymmetries

Martin v. Loewis martin@v.loewis.de
Thu, 10 Jan 2002 22:31:06 +0100


> >>> unicode("\xa9", "unicode-escape")
> u'\xa9'

As a follow up, in source code, you might want to write

 u"\N{COPYRIGHT SIGN}"

instead, for better readability.

Regards,
Martin