Resin中就要修改配置文件来设置编码格式,方法如下:
打开C:\resin-4.0.37\conf\resin.xml文件
找到
<host-default>
<!-- creates the webapps directory for .war expansion -->
<web-app-deploy path="webapps"
expand-preserve-fileset="WEB-INF/work/**"
multiversion-routing="${webapp_multiversion_routing}"
path-suffix="${elastic_webapp?resin.id:''}"/>
<character-encoding>UTF-8</character-encoding>
</host-default>
标签,添加<character-encoding>UTF-8</character-encoding>