Error handling Unicode XLSX
csv2odf can convert csv data to formatted spreadsheets and documents.
Brought to you by:
w322
Hi,
Since v2.07, I get the following error when I try to convert a csv to xlsx file.
Traceback (most recent call last): File "/usr/bin/csv2odf", line 2774, in <module> zip.replace_file_object('xl/sharedStrings.xml', string_file.finish()) File "/usr/bin/csv2odf", line 2204, in finish chunk = self.intermediate_file.read(self.chunk_size).decode(self.app.ENCODING) File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode return codecs.utf_8_decode(input, errors, True) UnicodeDecodeError: 'utf8' codec can't decode byte 0xc3 in position 4095: unexpected end of data
Command used:
csv2odf -s 2 Source.csv Template.xlsx Output.xlsx
Thanks for testing. I have a version attached that should fix the problem.
This version fixes the issue. Thank you!