21 Feb
2007
21 Feb
'07
8:27 p.m.
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