[Zope] Re: problem with input elements and unicode/utf-8

Dieter Maurer dieter at handshake.de
Wed Feb 21 15:27:38 EST 2007


Andreas Jung wrote at 2007-2-20 17:52 +0100:
> ...
>I can reproduce this error. Obviously 
>RestrictedPython.compile_restricted_eval() can't deal correctly with
>unicode strings.

Newer Python versions need to know the encoding of the source.

In standard Python scripts, a coding comment in the form "# -*- coding ..."
is used.

For PageTemplates, the template would need to provide the encoding
information in some way (though I do not know precisely how this should
happen).



-- 
Dieter


More information about the Zope mailing list