tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shanta B <B.Sha...@siemens.com>
Subject RE: UTF-8 problems
Date Mon, 04 Aug 2003 06:54:38 GMT
Hi
     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
CATALINA_OPTS="-Dfile.encoding=ISO-8859-1"

-----Original Message-----
From: Tang Guangyu [mailto:ytgym@online.sh.cn]
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" <nathan@codeczar.com>
To: "tomcat user" <tomcat-user@jakarta.apache.org>
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: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org

Mime
View raw message