UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 10442: character maps to <undefined>
Benjamin Peterson
benjamin at python.org
Thu Jan 29 15:25:41 EST 2009
Anjanesh Lekshminarayanan <mail <at> anjanesh.net> writes:
>
> > It does auto-detect it as cp1252- look at the files in the traceback and
> > you'll see lib\encodings\cp1252.py. Since cp1252 seems to be the wrong
> > encoding, try opening it as utf-8 or latin1 and see if that fixes it.
>
> Thanks a lot ! utf-8 and latin1 were accepted !
Just so you know, latin-1 can decode any sequence of bytes, so it will always
work even if that's not the "real" encoding.
More information about the Python-list
mailing list