I\'m using tomcat 6.0.32 in windows 7. Inside a very simple servlet, inside the init method, I\'m printing:
System.out.println(Charset.defaultCharset());
For Tomcat running as a Windows service neither %JAVA_OPTS% and neither setenv.bat answers works in my case.
I set the option "-Dfile.encoding=UTF8" in registry:
"HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Procrun 2.0\tomcatstackTomcat\Parameters\Java --> Options*
Then it works.