I am working on a program which was written in python under windows. It is reading cvs file. Here is the part of the code:
with open(os.path.abspath(self.currencies_file_path), 'r') as f:
reader = csv.reader(f)
#for each row find whether such isocode exists in the table
for row in reader: #THis is line 49
And this is the error:
File "whatever/staticdata.py", line 49, in upload_currencies
for row in reader:
File "/usr/lib/python3.4/codecs.py", line 313, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf3 in position 1307: invalid continuation byte
The csv file is not even encoded with utf-8(I think). Why am I having this kind of issue?
P.S. I dont know anything about encodings.