Modify

Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#3209 closed defect (fixed)

Error: 'ascii' codec can't encode character u'\xfc' ... when using german special characters

Reported by: js@… Owned by: Russ Tyndall
Priority: normal Component: EstimatorPlugin
Severity: critical Keywords:
Cc: Trac Release: 0.11

Description

Just installed EstimatorPlugin and found a critical Bug for german users.

If I use one of these characters

ä ü ö[[BR]]
a u o with two little dots on it (in case the above line is readable for you)
( html: &auml &ouml ü

which are on the german codetable, I get an error while saving the estimate:

Invalid Id: 2
Error: 'ascii' codec can't encode character u'\xfc' in position 33: ordinal not in range(128)

(just for info: The border of the message is green, just for the look and feel it should be red :-) )

The thing is: The estimate is saved as it should (including special characters) with the ticket, but if I click on "edit this estimate" I get the same error message and an empty estimate. I have no possibility


Trac 0.11 rc2 standalone @ windows Latest EstimatorPlugin


Some other Plugins seem to have similar problems:
http://trac-hacks.org/search/...
http://trac-hacks.org/ticket/1969

Attachments (0)

Change History (3)

comment:1 Changed 9 years ago by Russ Tyndall

I will try to look into this soon

russ

comment:2 Changed 9 years ago by Russ Tyndall

(In [4340]) re #3209

Based on what you linked to, this seems like a problem using the str() function when I should be using unicode()

The place that I found where it was doing this was in building up some json output. I changed this to unicode, which will hopefully mean that this error is solved.

HTH,

Russ

comment:3 Changed 9 years ago by Russ Tyndall

Resolution: fixed
Status: newclosed

ps... sorry it took so long, we dont use this plugin as much as we thought we would, so the bugs on it have gotten less attention from me than perhaps they should.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Russ Tyndall.
The resolution will be deleted.

Add Comment


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

 
Note: See TracTickets for help on using tickets.