How to solve UnicodeDecodeError: ‘UTF-8’ codec can’t decode bytes
2 min readOct 19, 2023
So, I just had this error on reading a csv file using python
decode UnicodeDecodeError: 'utf-8' codec can't decode bytes in position 7250–7251: invalid continuation byte
I was opening file a .csv with:
with open('filapath/filename.ext') as file:
print(file.read())