I am trying to read a pandas file - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: I am trying to read a pandas file (/thread-21645.html) |
I am trying to read a pandas file - Balaji - Oct-08-2019 Hi, while reading a csv file i get a error like this UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa3 in position 127: invalid start byte How to clear this error RE: I am trying to read a pandas file - Larz60+ - Oct-08-2019 what does the open statement look like? usually you can use something like: with open(filename, 'r', encoding="UTF-8"): ...if that doesn't help, try: with open(filename, 'r', encoding="ISO-8859-1"): ... |