[Zope] Change the encoding of a single ZPT page

Dieter Maurer dieter at handshake.de
Tue Aug 29 13:24:48 EDT 2006


Luiz Fernando Bernardes Ribeiro wrote at 2006-8-29 12:28 -0300:
>Is it possible to change the encoding of a page without having to change the
>default-zpublisher-encoding option in zope.conf?

The "default-zpublisher-encoding" is relevant only when
 
 1. the request returns a unicode object

and

 2. the "Content-Type" response header does not specify a
    charset.

Ensure that your page sets the "Content-Type" response header
correctly. 



-- 
Dieter


More information about the Zope mailing list