UnicodeDecode error when saving hours as csv (fix included)
|Reported by:||dolfandringa||Owned by:||rjollos|
|Severity:||critical||Keywords:||unicode csv export|
Description (last modified by rjollos)
When downloading a csv file from the /hours url, sometimes I get a
UnicodeEncodeError: 'ascii' codec can't encode character ... in position 21: ordinal not in range(128)
This error occurs when a user entered unicode characters in tickets/hour logs. When downloading the csv file in queryhours2csv, this error was thrown.
The included diff fixes the error by properly encoding all strings as utf-8.
Change History (10)
Changed 11 months ago by dolfandringa
comment:7 Changed 4 weeks ago by rjollos
- Resolution set to fixed
- Status changed from assigned to closed