美文网首页
resin设置编码格式

resin设置编码格式

作者: ilzming | 来源:发表于2016-09-13 15:48 被阅读0次

form用get方式提交时,会出现中文乱码。
这时需要通过修改${RESIN_HOME}/conf/resin.xml来设置编码格式.

<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>为添加的标签。

相关文章

网友评论

      本文标题:resin设置编码格式

      本文链接:https://www.haomeiwen.com/subject/zjbmettx.html