form用get方式提交時(shí)谨设,會(huì)出現(xiàn)中文亂碼割粮。
這時(shí)需要通過(guò)修改${RESIN_HOME}/conf/resin.xml來(lái)設(shè)置編碼格式.
<host-default>
<!-- creates the webapps directory for .war expansion -->
<web-app-deploy path="/data/admin"
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>
<code><character-encoding>UTF-8</character-encoding></code>為添加的標(biāo)簽袁铐。