Opened 12 years ago

Last modified 9 years ago

#10233 closed defect

UnicodeDecode error when saving hours as csv (fix included) — at Initial Version

Reported by: Dolf Andringa Owned by: Ryan J Ollos
Priority: high Component: TracHoursPlugin
Severity: critical Keywords: unicode csv export
Cc: Trac Release: 0.12

Description

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 filein queryhours2csv, this error was trown.

The included diff fixes the error by properly encoding all strings as utf-8.

Change History (1)

Changed 12 years ago by Dolf Andringa

Attachment: fix.diff added
Note: See TracTickets for help on using tickets.