设置Tomcat的默认编码格式为UTF8

Just create a setenv.bat file inside the TOMCAT/bin directory with the following contents:

set "JAVA_OPTS=%JAVA_OPTS% -Dfile.encoding=UTF8"

 

如果是linux,setenv.sh的内容如下:

set "JAVA_OPTS=$JAVA_OPTS -Dfile.encoding=UTF8"

猜你喜欢

转载自aigo.iteye.com/blog/2034656