Modify

Opened 4 years ago

Closed 4 years ago

#13842 closed defect (fixed)

UnicodeEncodeError occured in component admin page

Reported by: anonymous Owned by: Cinc-th
Priority: normal Component: SimpleMultiProjectPlugin
Severity: normal Keywords:
Cc: Trac Release: 1.2

Description

I got non-English user who use non-Ascii code in component name.

I got these error after updating latest revision with Trac1.2
when I tried to edit component "{TRAC ENV/admin/ticket/component"

UnicodeEncodeError: 'ascii' codec can't encode character u'\u6388' in position 121: ordinal not in range(128)

File "build/bdist.linux-x86_64/egg/simplemultiproject/milestone.py"、 Line 85, Function create_projects_table_j
近辺のコード:

80	        tr = u""
81	    for prj in filtered_projects:
82	        sel = ' checked' if prj[1] in comp_prj else ''
83	        tr += tr_templ.format(p_id=prj[0], p_name=prj[1], input_type=input_type, sel=sel)
84	 
85	    return table_tmpl.format(tr=tr)
86	 
87	 
88	def create_cur_projects_table(smp_model, name):
89	    """Create a table holding projects for this milestone.

Attachments (0)

Change History (2)

comment:1 Changed 4 years ago by Cinc-th

I can see the problem on my system.

Thanks for the report.

comment:2 Changed 4 years ago by Cinc-th

Resolution: fixed
Status: newclosed

In 17797:

SimpleMultiProjectPlugin: fix UnicodeEncodeError with non-ascii characters in project names. Templates must be unicode.

Closes #13842

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Cinc-th.
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.