[Zope] How to patch ZMI to include character encoding

Stuart Bishop zen at shangri-la.dropbear.id.au
Mon Sep 15 04:18:03 EDT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

- -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On Sunday, September 14, 2003, at 11:18  PM, Milos Prudek wrote:

> Where do I need to patch Zope source to force it to always include 
> character encoding meta tag in ZMI pages?
>
> I need the following tag in every ZMI page:
>
> <meta http-equiv="Content-Type" content="text/html; 
> charset=windows-1250" />
>

If you are using a modern Zope (2.6+ I think), then you need to set the 
management_page_charset variable somewhere where manage_page_header can 
acquire it (eg. creating the management_page_charset property in the 
Zope root folder's property page and setting it to the string 
'windows-1250' should work).

If you want to find the relevant bit of magic in the source code, it is 
lib/python/App/dtml/manage_page_header.dtml (which shows the default is 
iso-8859-1).
- - -- Stuart Bishop <zen at shangri-la.dropbear.id.au>
http://shangri-la.dropbear.id.au/

- -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (Darwin)

iD8DBQE/ZXV8h8iUz1x5geARAsQIAJ4vzs1rqQBYcuzaDksG+ZxDQPY2ngCgubJ9
CjC6Vfnvt0AT+e/CNZjggvY=
=nx/A
- -----END PGP SIGNATURE-----


- -- 
Stuart Bishop <zen at shangri-la.dropbear.id.au>
http://shangri-la.dropbear.id.au/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (Darwin)

iD8DBQE/ZXW8h8iUz1x5geARAu/QAJ9CcqJsON08ZooRd8aL7YtqeSm6XwCfaSzl
PL1m6WaI0/F6mHrVQJZMHAY=
=8bbd
-----END PGP SIGNATURE-----




More information about the Zope mailing list