Menu

#10 Error handling Unicode XLSX

v1.0 (example)
closed-fixed
None
5
2017-02-14
2017-02-09
Oudiceval
No

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

Discussion

  • Larry Jordan

    Larry Jordan - 2017-02-10

    Thanks for testing. I have a version attached that should fix the problem.

     
    • Oudiceval

      Oudiceval - 2017-02-13

      This version fixes the issue. Thank you!

       
  • Larry Jordan

    Larry Jordan - 2017-02-14
    • status: open --> closed-fixed
     

Log in to post a comment.