Python: UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xc2 in position 806040: ordinal not in range(128)

Trying to parse a file that has some unusual characters in it. I spent a while trying to work out if my file was in an unusual encoding, or whether it was a CR vs CRLF issue, but no, I did have some unusual chars in the file. Removed the offending chars and now all good.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.