[Zope-dev] Should PageTemplate._text be a unicode or an encoded string in Zope 2.9.3?

Andreas Jung lists at zopyx.com
Sat Jul 22 09:44:12 EDT 2006



--On 22. Juli 2006 15:34:01 +0200 Tino Wildenhain <tino at wildenhain.de> 
wrote:
> Well, pagetemplate files are another thing. They have to deal with
> the lack of charset information of a filesystem file and what they
> do once they load the data is even another thing.
>
> Even filesystem pagetemplates should work with unicode internal,
> making it easy to recode them for output and combine with other
> potentially unicode stuff.


huh?..even on the file system a pt file is encoded using some encoding.
For an XML pagetemplate file the encoding is clearly defined through the 
BOM (if available) and/or the XML preamble. So the most reliable solution 
would be to use XML PTs only.

-aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope-dev/attachments/20060722/088a9700/attachment.bin


More information about the Zope-Dev mailing list