[Zope] Re: problem with input elements and unicode/utf-8
Daryl Daly
daryld at norco.com
Mon Feb 19 12:28:02 EST 2007
On Sun, February 18, 2007 1:29 pm, Jostein Leira wrote:
> After the comments in the Collector above I'm wondering what to do if I
> should not set the sys.setdefaultencoding()? Not changing the default
> encoding I always get a decode error when trying to save a page template
> with non-ascii characters.
>
>From the Collector:
> Correction: I can save page templates containing non-ascii characters,
but > not like this:
>
> <tal:block tal:content="python:'æøå'"/>
Try:
tal:content="python: unicode('æøå','utf8')"
I have had to do this on some of my templates after moving to 2.10.2
Daryl.
More information about the Zope
mailing list