Closed GoogleCodeExporter closed 9 years ago
xlutils.copy.copy() does not copy the encoding.
>>> from xlutils import xlrd
>>> from xlutils import xlwt
>>> from xlutils.copy import copy
>>> rb=xlrd.open_workbook(some_xls,encoding_override='latin-1')
>>> wb=copy(rb)
>>> print wb.encoding
'ascii'
>>> wb.encoding='latin-1'
>>> print wb.encoding
>>> sh=wb.get_sheet(0)
>>> sh.write(0,0,'\x90')
>>> wb.save(some_other_xls)
UnicodeDecodeError: 'ascii' codec can't decode byte 0x90 in position 0: ordinal
not
in range(128)
'latin-1'
Original comment by pinner.luke@gmail.com
on 29 Apr 2010 at 6:45
This issue was closed by revision r291.
Original comment by pinner.luke@gmail.com
on 30 Apr 2010 at 12:29
Original issue reported on code.google.com by
pinner.luke@gmail.com
on 29 Apr 2010 at 6:22