Hello. FormBuild is being used for form building in my project
In old version of Pylons, everything was working fine, but when I
upgraded to latest one, I have a unicode error:

<type 'exceptions.UnicodeDecodeError'>: 'ascii' codec can't decode byte
0xd0 in position 119: ordinal not in range(128)


It's raised by following string in mako template:

${c.form.layout.field(field='text', name='code', caption=_('Code'),
options=dict(size="20",maxlength=20))}

Here _('Code') is of type unicode

As I understand, the c.form.layout(...) call returns non-ascii string
(type str)

Is it possible to somehow tell formbuild to return unicode strings (type
unicode) or I should rewrite formbuild myself?

Rushan


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to