Is there any way to decode String using unknown codec?
Dieter Maurer
dieter at handshake.de
Thu Jun 28 13:18:12 EDT 2012
More information about the Python-list mailing list
Thu Jun 28 13:18:12 EDT 2012
- Previous message (by thread): Is there any way to decode String using unknown codec?
- Next message (by thread): Is there any way to decode String using unknown codec?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
howmuchistoday at gmail.com writes: > I'm a Korean and when I use modules like sys, os, &c, > sometimes the interpreter show me broken strings like > '\x13\xb3\x12\xc8'. > It mustbe the Korean "alphabet" but I can't decode it to the rightway. > I tried to decode it using codecs like cp949,mbcs,utf-8 > but It failed. > The only way I found is eval('\x13\xb3\x12\xc8'). This looks as if "sys.stdout/sys.stderr" knew the correct encoding. Check it like this: import sys sys.stdout.encoding
- Previous message (by thread): Is there any way to decode String using unknown codec?
- Next message (by thread): Is there any way to decode String using unknown codec?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list