Hi!

Problem of non-US characters in Tomcat is returning again and again...

My setup is:

1. Tomcat 4.0.5, SUN JDK 1.3.1, JSP page with 
<%@ page contentType="text/html;CHARSET=ISO-8859-2" %>

2. 
String variable 's' with some LATIN2 characters in JSP code

3. 
out.printlin(s) displays correctly all characters in a browser

4. 
PrintWriter pw = new PrintWriter (new FileWriter ("/var/tmp/syf.txt"));
pw.println (s);
pw.close ();

writes string 's' to /var/tmp/syf.txt with non-US characters prepended
with an 'Â' character.

All above behaviour does not depend on 'LANG' variable visible by tomcat
(during it's start) and -Djavax.servlet.request.encoding=ISO-8859-2 used
in CATALINA_OPTS (i.e. does not depend whether it is set or not). 

Can anyone explain what is going on?

TIA

Richard.

-- 
"First they ignore you. Then they laugh at you. Then they
fight you. Then you win." - Mohandas Gandhi.

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to