You can set header like this: $page.setHttpEquiv("Content-Type", "text/html;
charset=GB2312")
. Remember not to add any HTML <head> tag to layouts, or it will conflict
with head tag created by Turbine.
----- Original Message -----
From: "Marce Bariou" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 30, 2003 1:20 AM
Subject: Re: How to modify header in a HTML template
> Le mar 29/07/2003 à 18:23, Marce Bariou a écrit :
> > Thank for your Help
> >
> > I want to add in the HTML template header, the following directive :
> >
> > <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
> >
> > I presume than the final page is assembled somewhere in a doBuild() or
> > something like that as a string, but I can't find out where .
> >
> > thanks for a help
> >
> > Marcel
> >
>
> I answer to myself
>
> I will Try to use this method :
>
> setHttpEquiv(String, String) - Method in class
> org.apache.turbine.util.template.TemplatePageAttributes
> Sets a HttpEquiv META tag in the HEAD of the page, usage:
> setHttpEquiv("refresh", "5; URL=http://localhost/nextpage.html")
> setHttpEquiv("Expires", "Tue, 20 Aug 1996 14:25:27 GMT")
>
> Maybe it works I don't know
>
>
>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]