linux下jetty,tomcat中文乱码问题解决
jetty的中文乱码解决方案参考资料
http://stackoverflow.com/questions/4214111/jetty-character-encoding-issue
在startup.sh中,第一行加入
export LANG=en_US.UTF-8
tomcat的中文乱码解决方案
http://stackoverflow.com/questions/11089783/character-encoding-issue-with-tomcat
在catalina.sh中找到JAVA_OPTS,加入参数
export JAVA_OPTS="-Dfile.encoding=UTF-8"
以上方法基本可以解决linux平台下各种中文乱码问题,包括我目前遇到的FTP连接串包含中文的问题
页:
[1]