== 外部表现 ==
中文显示为问号 ????
访问含中文的url提示404
== locale配置 ==
1. 执行locale,是否会报错? $LANG, $LC_CTYPE, $LC_ALL是否都有值? 都正确的话跳过此节。
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US.UTF-8
LC_CTYPE=UTF-8
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
2. 修改/etc/sysconfig/i18n, 增加
LC_CTYPE="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
3. source /etc/sysconfig/i18n
== tomcat配置 ==
URIEncoding="utf-8"
useBodyEncodingForURI="true"
/>
== 验证 ==
重启tomcat服务,访问url验证
阅读(1697) | 评论(0) | 转发(0) |