You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Thomas Troeger <ts...@gmx.de> on 2003/11/05 16:12:54 UTC
-Dfile.encoding and tomcat-3.3.1a question.
Hello,
I'm running tomcat-3.3.1a on x86-Linux. There is an issue
regarding umlauts (like ä, ö, ß). If I use java-1.4.1:
: Java version:
: java version "1.4.1"
: Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-b21)
: Java HotSpot(TM) Client VM (build 1.4.1-b21, mixed mode)
I can start the java interpreter by issuing
-Dfile.enconding=iso-8859-1 as an argument in tomcat.sh (line
130):
: TOMCAT_OPTS="$TOMCAT_OPTS -Dfile.encoding=iso-8859-1 -Xmx1024M -Djava.security.policy==${TOMCAT_HOME}/conf/tomcat.policy "
Then everything works fine and tomcat can handle umlauts and encoding
as expceted. Now if I use java-1.4.2:
: java version "1.4.2_02"
: Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_02-b03)
: Java HotSpot(TM) Client VM (build 1.4.2_02-b03, mixed mode)
umlauts don't get handled properly and I get a lot of '?' chars
instead. My question is: how do I call tomcat or how do I have to
modify my servlet to get proper umlauts again? Any hint welcome,
mfG,
--tst.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: -Dfile.encoding and tomcat-3.3.1a question.
Posted by Luiz Ricardo <lu...@itx.com.br>.
Hi,
this occurs because the JVM 1.4.2 doesn´t permit to set some system
properties, especially file.encoding. I solved this problem setting the
enviroment variable LANG to pt_BR.ISO-8859-1 (in my case) in
catalina.sh.
Luiz Ricardo
----- Original Message -----
From: "Thomas Troeger" <ts...@gmx.de>
To: <to...@jakarta.apache.org>
Sent: Wednesday, November 05, 2003 12:12 PM
Subject: -Dfile.encoding and tomcat-3.3.1a question.
> Hello,
>
> I'm running tomcat-3.3.1a on x86-Linux. There is an issue
> regarding umlauts (like ä, ö, ß). If I use java-1.4.1:
>
> : Java version:
> : java version "1.4.1"
> : Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-b21)
> : Java HotSpot(TM) Client VM (build 1.4.1-b21, mixed mode)
>
> I can start the java interpreter by issuing
> -Dfile.enconding=iso-8859-1 as an argument in tomcat.sh (line
> 130):
>
> :
TOMCAT_OPTS="$TOMCAT_OPTS -Dfile.encoding=iso-8859-1 -Xmx1024M -Djava.se
curity.policy==${TOMCAT_HOME}/conf/tomcat.policy "
>
> Then everything works fine and tomcat can handle umlauts and encoding
> as expceted. Now if I use java-1.4.2:
>
> : java version "1.4.2_02"
> : Java(TM) 2 Runtime Environment, Standard Edition (build
1.4.2_02-b03)
> : Java HotSpot(TM) Client VM (build 1.4.2_02-b03, mixed mode)
>
> umlauts don't get handled properly and I get a lot of '?' chars
> instead. My question is: how do I call tomcat or how do I have to
> modify my servlet to get proper umlauts again? Any hint welcome,
>
> mfG,
>
> --tst.
>
> ---------------------------------------------------------------------
> 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