W3C home > Mailing lists > Public > www-international@w3.org > July to September 2004

Re: JSP page directive contentType overriden by Apache tomcat?

From: Jungshik Shin <jshin@i18nl10n.com>
Date: Sat, 17 Jul 2004 21:07:58 +0900 (KST)
To: www-international@w3.org
Message-ID: <Pine.LNX.4.58.0407172106001.12600@jshin.net>


Jungshik Shin wrote:

> A. Vine wrote:
>> This article may help:
>> http://java.sun.com/developer/technicalArticles/Intl/MultilingualJSP/

> different places so that I think I have to emply a work-around
> mentioned in the document above which is flushing the response buffer
> after setting 'charset' explicitly but before any use of JSTL that may
> implicitly reset charset.  Hopefully, custom-filters are not in
> action...

That work-around (freezing 'charset' in C-T header before JSTL changes
it) worked for me with Tomcat 4.1.30. I flushed the buffer (with
'out.flush()') after writting the 'DOCTYPE' declaration but before
any use of JSTL.

KUROSAKA Teruhiko wrote:

> are encoded in UTF-8, then a quick fix would be to add
> META header in each JSP:
>   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

Thanks for the reply.  'Content-Type' header in HTTP header has a higher
precedence that the meta tag so that it doesn't solve my problem arising
from  the incorrect C-T header. Btw, I had that meta tag from the very
beginning.

Once again, thanks all for help.

Jungshik
Received on Saturday, 17 July 2004 08:08:34 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 2 June 2009 19:17:03 GMT