Modify ↓
Opened 19 years ago
Closed 19 years ago
#75 closed defect (fixed)
UTF-8 terminal output can result in UnicodeEncodeError
Reported by: | matt.hughes@… | Owned by: | cmlenz |
---|---|---|---|
Priority: | trivial | Milestone: | 0.5.1 |
Component: | Build master | Version: | 0.5 |
Keywords: | Cc: | ||
Operating System: |
Description
Using LANG=en_CA.UTF-8, gcc uses fancy quotes (‘’) in it's output. When messages are recieved by the master, the xml parser returns nodeValue's as unicode strings. Inserting this string into the sqlite database causes sqlite to try to encode the unicode string as ascii, but this fails with a Unicode Encode Error?.
The solution is to encode the unicode strings as UTF-8 when they are read from the minidom. The attached patch does just that.
Attachments (1)
Change History (3)
Changed 19 years ago by matt.hughes@…
comment:1 Changed 19 years ago by cmlenz
- Milestone set to 0.5.1
- Status changed from new to assigned
Thanks!
comment:2 Changed 19 years ago by cmlenz
- Resolution set to fixed
- Status changed from assigned to closed
Note: See
TracTickets for help on using
tickets.
Patch to fix an encoding bug