Re: ISO-8895-2 charset problem
"Malcolm Edgar" <[email protected]>
| Newsgroups | gmane.comp.java.tapestry.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Marek, The Body component will replace any HTML, HEAD, and BODY elements. If you are using the Body component and want to do stuff in the HTML and HEAD elements you will need to use a Shell component. The Shell component has a delegate parameter you can use to write out meta tags: http://tapestry.sourceforge.net/doc/ComponentReference/Shell.html I haven't used this personally but it sounds like the right approach. regards Malcolm >From: Marek Janukowicz <[email protected]> >To: Tapestry Mailing List <[email protected]> >Subject: [Tapestry-developer] ISO-8895-2 charset problem >Date: Mon, 11 Nov 2002 12:37:33 +0100 > >Hello > >My HTML templates are made using 8859-2 charset. I add the following >line: > ><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2"> > >to the <HEAD> section, but when browsing the charset is set to default. >To make the browser detect it correctly I must write something like: > > public IMarkupWriter getResponseWriter(OutputStream out) { > HTMLWriter writer = new HTMLWriter("text/html;charset=iso-8859-2",out); > return writer; > } > >in my component's java class. > >Is there easier way to make it work? > > >Thanks >-- >Marek Janukowicz >http://starware.one.pl > > >------------------------------------------------------- >This sf.net email is sponsored by:ThinkGeek >Welcome to geek heaven. >http://thinkgeek.com/sf >_______________________________________________ >Tapestry-developer mailing list >[email protected] >https://lists.sourceforge.net/lists/listinfo/tapestry-developer _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf