problem with file.encoding system property

Hi all

I develop a web application with Tomcat app server.

I have to set file.encoding system property to "Cp1252", but when I set it programatically usingSystem.setProperty("file.encoding","Cp1252") it doesnt affect to my program outcome but when I put it in catalina.bat withset JAVA_OPTS=-Dfile.encoding=Cp1252 it works fine.

what is the differences and why I cant change that property programatically?

thanks

[459 byte] By [java1357a] at [2007-11-26 18:25:11]
# 1
> why I cant change that property programatically?It is a system property reflecting the initial settings read when the JVM started. Resetting the system property java.home will not change your home directory either.
BIJ001a at 2007-7-9 5:59:15 > top of Java-index,Desktop,Runtime Environment...
# 2
thanks so is there any workaround for this problem?
java1357a at 2007-7-9 5:59:15 > top of Java-index,Desktop,Runtime Environment...