I want to read the csv file and process some columns, but I keep getting problems. Stuck with the following error:
Traceback (most recent call last): File "C:\Users\Sven\Desktop\Python\read csv.py", line 5, in <module> for row in reader: File "C:\Python34\lib\codecs.py", line 313, in decode (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf-8' codec can't decode byte 0x89 in position 446: invalid start byte >>>
My code
import csv with open("c:\\Users\\Sven\\Desktop\\relaties 24112014.csv",newline='', encoding="utf8") as f: reader = csv.reader(f,delimiter=';',quotechar='|')
I start with Python, try to search, but it's hard to find the right solution.
Can anyone help me out?
source share