Commit 4a6c10a9 authored by Andreas Jung's avatar Andreas Jung

some more comments

parent 30bcf1f3
......@@ -141,12 +141,15 @@ class ZopePageTemplate(Script, PageTemplate, Historical, Cacheable,
(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):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment