解决linux服务器tomcat乱码问题
1 保证linux服务器使用的是utf-8
local -a查看支持的字体
vi/etc/sysconfig/i18n 修改为zh_CN.UTF-8
2.客户端软件Xshell、putty、SSH Secure Shell Client 等等客户端编码改为utf-8
3修改server.xml文件编码为utf-8 URIEncoding="UTF-8"
4.修改catalina.sh文件
if [ -z "$LOGGING_MANAGER" ]; then
JAVA_OPTS="$JAVA_OPTS-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager-Dfile.encoding=UTF8 -Dsun.jnu.encoding=UTF8"
else
JAVA_OPTS="$JAVA_OPTS $LOGGING_MANAGER-Dfile.encoding=UTF8 -Dsun.jnu.encoding=UTF8"
fi
相关推荐
bluecarrot 2020-11-23
Attend 2020-11-17
ZHAICAN 2020-11-16
codedecode 2020-11-14
zhangbingb 2020-11-12
ykmail 2020-11-11
futurezone 2020-11-06
rikeyone 2020-11-04
橄榄 2020-11-04
WenCoo 2020-10-31
liuyuchen 2020-10-27
ROES 2020-10-24
Gexrior 2020-10-22
ZHAICAN 2020-10-20
风语者 2020-10-16
zhongguomin 2020-10-16
净无邪 2020-10-15