‘utf-8’ codec can’t decode byte 0xa0 in position 4276: invalid start byte

Encoding in the file is ‘windows-1252’. Use:

open('txt.tsv', encoding='windows-1252')

Leave a Comment