Opened 10 years ago

Closed 9 years ago

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

Reported by: Owned by: js@… Russ Tyndall normal EstimatorPlugin critical 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 &uuml;


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

### comment:1 Changed 10 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 new → 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.

### Modify Ticket

Change Properties