UnicodeDecode error when saving hours as csv (fix included)
|Reported by:||Dolf Andringa||Owned by:||Ryan J Ollos|
|Severity:||critical||Keywords:||unicode csv export|
Description (last modified by )
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.