Quantcast
Channel: Active questions tagged utf-8 - Stack Overflow
Viewing all articles
Browse latest Browse all 1216

How to find the character which is throwing UnicodeDecodeError when reading any file with 'utf-8' encoding

$
0
0

When reading a file from pandas read_csv , got UnicodeDecodeError.Syntax:

df = pd.read_csv("file_name.csv", sep='|')UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa0 in position 0: invalid start byte

How do I get which charcter is throwing the error at which location in file.


Viewing all articles
Browse latest Browse all 1216

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>