[Zope3-Users] Re: header trouble

Christian Zagrodnick cz at gocept.com
Wed Oct 10 07:26:40 EDT 2007


Hi


On 2007-09-30 23:22:20 +0200, Axel Müller 
<axel.mueller at amit-services.de> said:

> Hi all,
> 
> I have written the line '<meta http-equiv="Content-Type"
> content="text/html; charset=utf-8"/>' in the header of my main
> skin-file but it does'nt show up in the browser. The lines above and
> below this one are displayed.
> 
> I can't find out what's wrong with my headers. Any suggestions?

Zope reads the meta-header when it reads your file to determine the 
file encoding. It then converts it to unicode and sends a real 
Content-Type header. This way it would be possible to have mixed 
encodings on the disk which is of course not possible in one page.



> 
> ---------------------------------
> <metal:block xmlns:metal="http://xml.zope.org/namespaces/metal"
>     metal:define-macro="page" >
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>     "http://www.w3.org/TRxhtml1/DTD/xhtml1-trnsitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml"
>     xmlns:tal="http://xml.zope.org/namespaces/tal">
> <head metal:define-macro="head">
> <meta http-equiv="expires" content="43200"/>
> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
> <meta name="Revisit-after" content="10 days"/>
> ...
> 
> ...
> </head>
> 
> Thanks,
> Axel


-- 
Christian Zagrodnick

gocept gmbh & co. kg  ·  forsterstrasse 29 · 06112 halle/saale
www.gocept.com · fon. +49 345 12298894 · fax. +49 345 12298891





More information about the Zope3-users mailing list