zope.formlib.form.Action does not work with Unicode label
Bug #528466 reported by
yasusii
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
BlueBream |
New
|
Undecided
|
Unassigned | ||
zope.formlib |
Fix Released
|
Low
|
Charlie_X |
Bug Description
>>> from zope.formlib.form import Action
>>> Action(
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/home/
name = label.encode('hex')
File "/usr/lib/
output = binascii.
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-1: ordinal not in range(128)
affects: | zopetoolkit-project → zope.formlib |
tags: | added: bugday20100424 |
To post a comment you must log in.
As a workaround for this bug, you can pass the 'name' for the action in addition to the label. E.g.:
Action( u'\u9001\ u4fe1', name='my_action')
Thanks for the report!