-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Pramodpm,

On 11/12/2009 4:49 AM, pramodpm wrote:
> We are  getting following error:
> java.io.CharConversionException: Not an ISO 8859-1 character: <EF><BF><83>.
> It is not just <83>. Sorry I missed those last time. 
>
> java.io.CharConversionException: Not an ISO 8859-1 character: <83>
> at javax.servlet.ServletOutputStream.print(ServletOutputStream.java:89)
> at java.io.OutputStream.write(OutputStream.java:99)

Can you post more of the stack trace? Presumably, there is some of your
own code in this stack trace somewhere.

This is probably happening in a JSP or a servlet (which itself is a
JSP), and you can set the response encoding very easily as long as no
output has been generated already:

servlet code:
response.setCharacterEncoding("UTF-8");

JSP code:
<%...@page charset="UTF-8" ... %>

> We are working with java6. If I use tomcat 5.5.23 it is working... But we
> would like to use the tomcat 6.

I'm guessing that you have some configuration in your 5.5.23 instance
that you haven't copied to your 6.x instance.

Andre and Konstantin have (sort of) mentioned that the platform's
default Locale and/or character encoding can affect this setting, but I
don't believe it will. Unless you somehow override the response
encoding, it should default to ISO-8859-1 in all cases, because that's
what the HTTP specification says.

Consider reading http://wiki.apache.org/tomcat/FAQ/CharacterEncoding for
more information.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkr9dT8ACgkQ9CaO5/Lv0PAXZwCfZSvKigUktMRUFI+PzYrHrESi
aaEAn2ejg61JD7JtPqtgFUOPRAgUSkwk
=X/ym
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to