[Zope] UnicodeDecodeError
Dieter Maurer
dieter at handshake.de
Thu May 26 17:54:35 EDT 2005
Chris Withers wrote at 2005-5-25 20:54 +0100:
>Joern Wallstabe wrote:
>> Seem Zopes ZPT system is trying to do the encoding, depending on on
>> setHeader() method.
>> So if this header is set you can simply return unicode strings.
>
>It's actually lower down in the stack... ZPublisher encodes the
>response, and has a stoopid hard coded default of 'latin-1' that it
>returns ;-)
You are wrong:
ZPublisher uses what it finds in the "charset" parameter
of the "Content-Type" response header.
Only the default is "latin-1" (as specified by the HTML
specification).
--
Dieter
More information about the Zope
mailing list