[Grok-dev] Understanding unicode
Jan Ulrich Hasecke
janulrich.hasecke at web.de
Fri Aug 31 14:13:21 EDT 2007
Hi,
I use a Choice in grok.Fields.
form_fields = grok.Fields(
name=Choice(title=u'Art', values=[u'Elefantengehege',
u'Giraffengehege', u'Paviankaefig'])
When I insert u'Paviankäfig' I get an unicode error.
UnicodeEncodeError: 'ascii' codec can't encode characters in
position 7-8: ordinal not in range(128)
I used name=Affenkäfig before though.
juh
--
DZUG e.V. (Deutschsprachige Zope User Group)
http://www.zope.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: Signierter Teil der Nachricht
Url : http://mail.zope.org/pipermail/grok-dev/attachments/20070831/2bfe4de7/PGP.bin
More information about the Grok-dev
mailing list