[Grok-dev] Yet another UnicodeEncodeError

Lennart Regebro regebro at gmail.com
Sun Oct 21 13:33:48 EDT 2007

On 10/21/07, Jan Ulrich Hasecke <janulrich.hasecke at web.de> 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.

It is customary to use the english text in the code when translating,
and to be honest I'm not sure it works having non-ascii characters as
the msgid. But I guess it *should*, so that could be a bug. Hard to
say without the traceback.

Lennart Regebro: Zope and Plone consulting.
+33 661 58 14 64

More information about the Grok-dev mailing list