Unable to set JVM file encoding to UTF-8 on Windows
843829Feb 2 2006 — edited Oct 12 2009Hi,
I am running Tomcat on 1.5.0_05 JRE. I tried several things to set the jvm file encoding to UTF-8 instead of the default Cp1252, but no luck yet.
The most intuitive approach seems to be to use a JVM option like
"-Dfile.encoding=UTF-8"
but this does not seem to have any effect. I have a WinXP pro m/c. I saw some bug reports which seemed to indicate that changing the JVM file encoding is not an available feature....is that correct? I would really appreciate any help/pointers on this. I will post the solution if I find something in the meantime.
Thanks,
Sriram