26 May
2005
26 May
'05
9:54 p.m.
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