Opened 8 years ago

Closed 8 years ago

Last modified 6 years ago

#4524 closed defect (fixed)

Can't add accented characters

Reported by: emonesi Owned by: Odd Simon Simonsen
Priority: high Component: CustomFieldAdminPlugin
Severity: critical Keywords: ASCII accented chars characters portuguese pt-br
Cc: Trac Release: 0.11


When I tried to add accented characters (like á, ã, é, etc), in Options for Radio or Select field, Trac thrown the message below:

Trac detected an internal error:

UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 79: ordinal not in range(128)

Most recent call last:

    * File "C:\Program Files\Python25\Lib\site-packages\trac\web\", line 432, in  _dispatch_request
    * File "C:\Program Files\Python25\Lib\site-packages\trac\web\", line 204, in dispatch
    * File "C:\Program Files\Python25\Lib\site-packages\trac\admin\", line 113, in process_request
    * File "build\bdist.win32\egg\customfieldadmin\", line 55, in render_admin_panel
    * File "build\bdist.win32\egg\customfieldadmin\", line 104, in update_custom_field
    * File "build\bdist.win32\egg\customfieldadmin\", line 92, in create_custom_field
    * File "C:\Program Files\Python25\Lib\site-packages\trac\", line 199, in save
  • Here is my environment:
System Information:

User Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv: Gecko/2008120122 Firefox/3.0.5 Ubiquity/0.1.5
Python:    2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]
setuptools:    0.6c9
SQLite:    3.3.4
pysqlite:    2.3.2
Genshi:    0.5.1
mod_python:    3.3.1
Pygments:    1.0
jQuery:   1.2.6

It's a great plugin that helped us. This bug is minor for while. :)

Attachments (0)

Change History (6)

comment:1 Changed 8 years ago by anonymous

  • After this error message, Trac asked me to upgrade the environment
Trac Error

TracError: The Trac Environment needs to be upgraded.

Run "trac-admin c:/trac/myenv upgrade"

comment:2 Changed 8 years ago by Odd Simon Simonsen

Priority: normalhigh
Severity: minorcritical

Oh. Not good at all. I can recreate the issue at my end.

The upgrade problem is that Trac writes the whole config file to disk, and when it hits the problem field it just stops. So all later settings will be lost... - including [ticket-custom] and so on...

I'll look into it.

comment:3 Changed 8 years ago by emonesi

Really, after Trac upgrade, I lost the workflow configuration backing to version 0.10 workflow that doesn't have "accepted" state. Curiously, Trac put a message like "reset from invalid state" on ticket action, because was expected a "accepted" state.

My backup routine saved me today and I restored trac.ini from it. So, We always must have a test environment !

Thanks in advance and I'll wait for news.

comment:4 Changed 8 years ago by Odd Simon Simonsen

Resolution: fixed
Status: newclosed

(In [5161]) CustomFieldAdminPlugin: Fixing encoding issues when Trac writes the config to disk.

Closes #4524.

comment:5 Changed 8 years ago by anonymous

Thanks for your speed. I already downloaded the new version and I'll test it.

comment:6 Changed 6 years ago by Adrian Fritz

Keywords: ASCII added; ascii removed

Modify Ticket

as closed The owner will remain Odd Simon Simonsen.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment

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

Note: See TracTickets for help on using tickets.