[Zope] force the output encoding to utf-8 in page templates
Yuri
yurj at alfa.it
Tue Nov 15 08:04:10 UTC 2011
Il 15/11/2011 08:10, Andreas Jung ha scritto:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> You should be able to set the encoding of the response by
>
> <tal:def define="dummy python:
> request.RESPONSE.setHeader('content-type', 'text/html; charset=utf-8')" />
>
> within your page template.
<tal:def tal:define="dummy
python:request.RESPONSE.setHeader('content-type', 'text/html;;
charset=utf-8')" /> is the correct one.
I've to test it now :)
More information about the Zope
mailing list