UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 10442: character maps to <undefined>

Karsten Hilbert Karsten.Hilbert at gmx.net
Sun May 20 09:43:54 EDT 2018


On Sun, May 20, 2018 at 04:59:12AM -0700, bellcanadardp at gmail.com wrote:

> On Saturday, 19 May 2018 19:48:20 UTC-4, Skip Montanaro  wrote:
> > As Chris indicated, you'll have to figure out the correct encoding. You
> > might want to check out the chardet module (available on PyPI, I believe)
> > and see if it can come up with a better guess. I imagine there are other
> > encoding guessers out there. That's just one I'm familiar with.
> 
> thank you for the reply, but how exactly am i supposed to find oout what is the correct encodeing??

One CAN NOT.

The best you can do is to go ask the canonical source of the
file what encoding the file is _supposed_ to be in.

Then go from there and allow for errors.

Karsten
-- 



More information about the Python-list mailing list