UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 10442: character maps to <undefined>
Skip Montanaro
skip.montanaro at gmail.com
Sun May 20 09:07:47 EDT 2018
> how exactly am i supposed to find oout what is the correct encodeing?
It seems you are a Python beginner. Rather than just tell you how to use
this one module, I'll point you at some of the ways to get help through
Python.
* On pypi.org, search for "chardet" and see if the author provided online
documentation links.
* At the shell prompt, you might well have a "pydoc" command. Try "pydoc
chardet" after installing it.
* At the Python ">>> " prompt, import the chardet module, then use the
help() function to get some basic help gleaned from the module itself.
(This is basically what the pydoc command does.)
>>> import chardet
>>> help(chardet)
...
* Even more abbreviated than the help() function, the dir() function will
just tell you what attributes an object (not just a module) has.
* Go to docs.python.org and do some tutorial/beginner reading.
* Finally, try searching for "how to get help in python" in your favorite
search engine. There are plenty of useful websites/blogs/articles devoted
to this topic.
Skip
More information about the Python-list
mailing list