[Grok-dev] Re: Yet another UnicodeEncodeError
Philipp von Weitershausen
philipp at weitershausen.de
Sun Oct 21 15:19:43 EDT 2007
Jan Ulrich Hasecke wrote:
> Hi,
>
> @grok.action(_(u'Tiere füttern'))
>
> in an AddForm gives:
>
> UnicodeEncodeError: 'ascii' codec can't encode character u'\xfc' in
> position 7: ordinal not in range(128)
>
> But "Tiere fuettern" on a button looks ugly.
Did you declare a source code encoding at the top of the file?
Please include a full traceback.
--
http://worldcookery.com -- Professional Zope documentation and training
More information about the Grok-dev
mailing list