[Zope-Checkins]
SVN: Zope/branches/ajung-zpt-encoding-fixes/lib/python/Products/PageTemplates/ZopePageTemplate.py
some more comments
Andreas Jung
andreas at andreas-jung.com
Sun Dec 17 15:26:11 EST 2006
Log message for revision 71579:
some more comments
Changed:
U Zope/branches/ajung-zpt-encoding-fixes/lib/python/Products/PageTemplates/ZopePageTemplate.py
-=-
Modified: Zope/branches/ajung-zpt-encoding-fixes/lib/python/Products/PageTemplates/ZopePageTemplate.py
===================================================================
--- Zope/branches/ajung-zpt-encoding-fixes/lib/python/Products/PageTemplates/ZopePageTemplate.py 2006-12-17 20:24:56 UTC (rev 71578)
+++ Zope/branches/ajung-zpt-encoding-fixes/lib/python/Products/PageTemplates/ZopePageTemplate.py 2006-12-17 20:26:10 UTC (rev 71579)
@@ -141,12 +141,15 @@
(guessed_content_type, content_type))
encoding = sniffEncoding(text)
+
+ # for WebDAV, FTP
if not keep_output_encoding:
if content_type == 'text/xml':
self.output_encoding = 'utf-8'
else:
self.output_encoding = encoding
else:
+ # ZMI - no changes allowed
encoding = self.output_encoding
if not isinstance(text, unicode):
More information about the Zope-Checkins
mailing list