发布网友
共3个回答
热心网友
所有的源文件*.java,*.jsc,*.html,*.ftl都采用了UTF-8编码,还是出现了乱码需要修改Resin的配置。
(conf/resin.conf)
character-encoding Resin 1.1 child of: resin, server, host-default, host, web-app-default, web-app
default: The default value is ISO-8859-1.
Specifies the default character encoding for the environment.
<web-app id='/'>
<character-encoding>shift_jis</character-encoding>
...
</web-app>
这个是resin doc是在web-app-default里面加上了encoding的配置
<web-app-default>
<character-encoding>UTF-8</character-encoding>
</web-app-default>
以上resin的方法已在resin3.0.19上成功运行
热心网友
我 不会linux,XP我会。charset="utf8"
热心网友
linux的话 用iconv -f resin -t utf-8 -o result.txt old_file.txt