Modify

Opened 6 years ago

Closed 6 years ago

Last modified 4 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: bobbysmith007
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 6 years ago by bobbysmith007

I will try to look into this soon

russ

comment:2 Changed 6 years ago by bobbysmith007

(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 6 years ago by bobbysmith007

  • Resolution set to fixed
  • Status changed from new to closed

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.

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from bobbysmith007. Next status will be 'closed'.
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.