Re: ISO-8895-2 charset problem

"detlef schulze" <[email protected]>
Newsgroups gmane.comp.java.tapestry.devel
Message-ID <002c01c293e3$b23915a0$0302000a@sixpack>
I had the same problem (in my case it was 8859-1), that made forms inputs
with german special characters unusable.

Since all browser I tried seem not to care about encoding metatags in the
<head> section and I did't want to use unicode I modified the default
constructor of the class net.sf.tapestry.html.HTMLWriter to get rid of the
unicode without overriding getResponseWriter in every class.

cheers
Detlef

----- Original Message -----
From: "Marek Janukowicz" <[email protected]>
To: "Tapestry Mailing List" <[email protected]>
Sent: Monday, November 11, 2002 12:37 PM
Subject: [Tapestry-developer] ISO-8895-2 charset problem


> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.