tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shanta B <>
Subject RE: UTF-8 problems
Date Mon, 04 Aug 2003 06:54:38 GMT
     In Java 1.3, the default encoding is set to ISO-8859-1
which includes all the Country(German) special characters

In Java 1.4, the default encoding is set to ASCII
which converts all German special characters to '?'

The fix for this problem was just setting an environment variable

-----Original Message-----
From: Tang Guangyu []
Sent: Monday, August 04, 2003 5:30 AM
To: Tomcat Users List
Subject: Re: UTF-8 problems

This problem was caused by your browser. The browser will use its own
encoding to encode form values post back. You need set proper encoding to
request - request.setEncoding("BROWSER_ENCODING"). Or you can write a filter
to simplify your work.

----- Original Message -----
From: "Nathan Coast" <>
To: "tomcat user" <>
Sent: Sunday, August 03, 2003 9:11 PM
Subject: UTF-8 problems

> Hi,
> I have an text fields in a form that will contain UTF-8 characters e.g.
> 'á'.  I can retrieve utf-8 chars from the db and display them correctly
> in jsps via tomcat.  The only problem comes with submiting forms to
> tomcat.  request.getParameter() returns the incorrect value for the char
> e.g. 'á' instead of 'á'.
> AFAIK the default encoding of java is UTF-8 so I'm not to sure where to
> look. Anyone have any suggestions as to what I have to do?
> thanks
> Nathan
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message