There are two recent related articles on Javaworld.
They may help you in this regards.
--- "Ruth, Brice" <[EMAIL PROTECTED]> wrote:
> I'm running into a strange issue.
>
> I have certain JSPs with UTF-8 encoded characters in
> them (polish
> characters, to be exact). My Ant build.xml
> precompiles the JSPs using
> Jasper and then packages the application into a WAR
> for deployment.
>
> When I develop locally with Tomcat 5.0.18, I deploy
> without packaging
> into a WAR first. However, to deploy remotely, I
> create a WAR, then
> deploy from that.
>
> Locally, the JSPs appear just as they should. After
> being packaged into
> a WAR (even if I deploy it locally to the exact same
> instance of Tomcat
> 5.0.18), the UTF-8 characters are garbaged up. The
> garbaging appears the
> same as it does when I override the page-provided
> UTF-8 encoding (in the
> browser) and manually set the encoding to
> ISO-8859-1.
>
> What's going on here?! By the time that the JSPs are
> added to the WAR,
> they're binary .class files, since they are
> precompiled! Text encodings
> shouldn't make a bit of difference at that point,
> should they?!?
>
> The JSPs loaded still tell the browser that the
> encoding is UTF-8 ...
> and UTF-8 characters in the .properties files
> (passed through
> native2ascii) are properly displayed.
>
> It seems to me that something very strange is going
> on ... moreover,
> this is going to really throw a wrench in our
> project if we can't get to
> the bottom of it!
>
> Respectfully,
> Brice Ruth
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
__________________________________
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]