Opened 15 years ago
Closed 9 years ago
#6401 closed defect (wontfix)
Plugin doesn't support non-english characters
Reported by: | Erik | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | CondFieldsPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description
I've tried to enble this plugin but it breaks my trac installation. The reason for this seems to be that some of my field-values have swedish letters in them.
Is it possible to extend the functionality of the plugin to support non-english characters in field-values and field names?
Attachments (0)
Change History (4)
comment:1 Changed 10 years ago by
comment:2 Changed 10 years ago by
Owner: | Noah Kantrowitz deleted |
---|
comment:3 Changed 9 years ago by
Confirmed here, all ticket types rather than ascii break trac installation with python error
File "/usr/lib/python2.7/site-packages/TracCondFields-3.0dev-py2.7.egg/condfields/web_ui.py", line 41, in __init__ setattr(self.__class__, '%s_fields' % t, hidden_fields) UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-5: ordinal not in range(128)
The problem with setattr is that Python 2.* does not allow unicode glyphs for identifier names. In Python 3.2 this will work.
As a workaround you can convert identifiers to ascii using unidecode and keep track of the original name.
comment:4 Changed 9 years ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
CondFieldsPlugin is deprecated. Please see notice on CondFieldsPlugin and use DynamicFieldsPlugin instead. If you have any issues creating an equivalent configuration with DynamicFieldsPlugin, please ask for help on the trac:MailingList.
I faced the same problem. If a Ticket-Type has a non english character, the plugin breaks the entire TRAC-Environment.