44votes
1answer
1997views
How to handle Unicode encoding errors in Python
I'm getting UnicodeDecodeError when reading files or processing text. How do I properly handle encoding in Python?