[Zope-CMF] [CMF 2.1] FSPageTemplate & Unicode

Dieter Maurer dieter at handshake.de
Thu Dec 21 14:14:59 EST 2006


Andreas Jung wrote at 2006-12-20 19:34 +0100:
> ...
>Right. The pt_render() should return unicode only. Let's assume 
>FSPageTemplates would use unicode internally and a customized copy (an 
>instance of ZopePageTemplate) wouldn't then we would definitely run
>into UnicodeDecode errors. That's why we should use unicode as internal
>representation where possibly. However applications will likely run into
>UnicodeDecode error for example with scripts returning non-unicode...

Yes, you need "all text is unicode" or non-unicode encoded in a
default encoding. Its up to you, how you define "default encoding".

I would use Python's default encoding. But I know that we disagree
on this solution :-)



-- 
Dieter


More information about the Zope-CMF mailing list