utf8 silly question

John Machin sjmachin at lexicon.net
Tue Jun 21 19:44:30 EDT 2005


Jeff Epler wrote:
> If you want to work with unicode, then write    
>     us = u"\N{COPYRIGHT SIGN} some text"

You can avoid almost all the wear and tear on your shift keys:

 >>> u"\N{copyright sign}"
u'\xa9'

... you are stuck with \N for reasons that should be obvious :-)

Cheers,
John



More information about the Python-list mailing list