utf8 silly question
John Machin
sjmachin at lexicon.net
Tue Jun 21 19:44:30 EDT 2005
More information about the Python-list mailing list
Tue Jun 21 19:44:30 EDT 2005
- Previous message (by thread): utf8 silly question
- Next message (by thread): utf8 silly question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message (by thread): utf8 silly question
- Next message (by thread): utf8 silly question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list