W
Wolfgang Herfter
Hi,
i have a strange problem (for me) here these make me busy for a week.
I develop a Webapplication with Netbeans 3.6, java version 1.4.2-b28 and
tomcat 5.0.27.
On my develop machine the application work fine but on the webserver they
make problems.
I compile the application an create a war file and send it to my webserver.
On this machine i can't see germen spec. characters. In order to be in a
position to know where the problem is, i write a little testprogramm in
java for the console.
*********************************************************
public class Umlaute {
public static void main(String[] args)
{
//show the file.encoding before
System.out.println(System.getProperty("file.encoding"));
//set the systemproperties to utf-8
System.setProperty("file.encoding","utf-8");
//show the fle.encoding now
System.out.println(System.getProperty("file.encoding"));
////////////////////////////////////////////////////
//now show the default System userproperties
System.out.println(System.getProperty("user.country"));
//setit to german
System.setProperty("user.country","DE");
//show the userproperties
System.out.println(System.getProperty("user.country"));
//the same with user.language
System.setProperty("user.language","de");
System.out.println(System.getProperty("user.language"));
System.out.println("äääööööööööööäääää Hello W\u00F6rld");
}
}
*********************************************************
These program produce the follow result
**********************************************************
ANSI_X3.4-1968
US
utf-8
DE
de
?????????????????? Hello W?rld
**********************************************************
On the machine for develop these program produce the correctly result.
I think the problem is the encoding ANSI_X3.4-1968. And the OS (Suse 8.1)
enviroment variables have the correct settings.
The parameter javac -encoding iso-8859-1 (or utf-8) has no effects. The
parameter java -Duser.language=de -Duser.country=DE has no effects.
Sorry but i have absolut no idea what i can do.
I'm hopefull that anybody in these list can help me.
Thnx in advands.
my regards wolfgang
i have a strange problem (for me) here these make me busy for a week.
I develop a Webapplication with Netbeans 3.6, java version 1.4.2-b28 and
tomcat 5.0.27.
On my develop machine the application work fine but on the webserver they
make problems.
I compile the application an create a war file and send it to my webserver.
On this machine i can't see germen spec. characters. In order to be in a
position to know where the problem is, i write a little testprogramm in
java for the console.
*********************************************************
public class Umlaute {
public static void main(String[] args)
{
//show the file.encoding before
System.out.println(System.getProperty("file.encoding"));
//set the systemproperties to utf-8
System.setProperty("file.encoding","utf-8");
//show the fle.encoding now
System.out.println(System.getProperty("file.encoding"));
////////////////////////////////////////////////////
//now show the default System userproperties
System.out.println(System.getProperty("user.country"));
//setit to german
System.setProperty("user.country","DE");
//show the userproperties
System.out.println(System.getProperty("user.country"));
//the same with user.language
System.setProperty("user.language","de");
System.out.println(System.getProperty("user.language"));
System.out.println("äääööööööööööäääää Hello W\u00F6rld");
}
}
*********************************************************
These program produce the follow result
**********************************************************
ANSI_X3.4-1968
US
utf-8
DE
de
?????????????????? Hello W?rld
**********************************************************
On the machine for develop these program produce the correctly result.
I think the problem is the encoding ANSI_X3.4-1968. And the OS (Suse 8.1)
enviroment variables have the correct settings.
The parameter javac -encoding iso-8859-1 (or utf-8) has no effects. The
parameter java -Duser.language=de -Duser.country=DE has no effects.
Sorry but i have absolut no idea what i can do.
I'm hopefull that anybody in these list can help me.
Thnx in advands.
my regards wolfgang