How to read strings cantaining escape character from a file and use it as escape sequences?
Duncan Booth
duncan.booth at invalid.invalid
Sat Dec 1 10:33:05 EST 2007
More information about the Python-list mailing list
Sat Dec 1 10:33:05 EST 2007
- Previous message (by thread): How to read strings cantaining escape character from a file and use it as escape sequences?
- Next message (by thread): How to read strings cantaining escape character from a file and use it as escape sequences?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
slomo <slimaak at gmail.com> wrote: >>>> print line > \u0050\u0079\u0074\u0068\u006f\u006e > > But I want to get a string: > > "\u0050\u0079\u0074\u0068\u006f\u006e" > > How do you make it? > line.decode('unicode-escape')
- Previous message (by thread): How to read strings cantaining escape character from a file and use it as escape sequences?
- Next message (by thread): How to read strings cantaining escape character from a file and use it as escape sequences?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list