Edgewall Software
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)

xmlio.patch (606 bytes) - added by matt.hughes@… 19 years ago.
Patch to fix an encoding bug

Download all attachments as: .zip

Change History (3)

Changed 19 years ago by matt.hughes@…

Patch to fix an encoding bug

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

Fixed in [317], [318].

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain cmlenz.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.