19 Feb
2007
19 Feb
'07
5:28 p.m.
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.