Closed molecular closed 4 years ago
after reading some docs I changes my import_set call from
dataset = tablib.import_set(open(file).read(), format="csv", delimiter=';', lineterminator='\n', encoding='utf-8')
to
dataset = tablib.import_set(open(file, encoding='utf-8').read(), format="csv", delimiter=';', lineterminator='\n')
I'm not sure this is the correct way to specify file encoding?
Absolutely, encoding
is a parameter of reading the (text) file, and the csv
module expects text properly decoded.
makes sense. It worked like I did it previously with python2 and earlier version, though.
Hi,
during a python3 update orgy I ran across the following problem:
(this occurs with tablib 1.0.0 and also with 0.13.0)
not sure how to solve this. Maybe someone can help me?