Grails request parameters encoding issue in Tomcat

前端 未结 3 1525
离开以前
离开以前 2020-12-18 06:19

My grails app will not decode request parameters correctly.

In config.groovy:

  • grails.views.gsp.encoding = \"UTF-8\"
  • grails
3条回答
  •  眼角桃花
    2020-12-18 06:28

    You need to add URIEncoding='UTF-8' to the Connector elements in conf/server.xml, e.g.

    
    

    This is described here: https://wiki.apache.org/tomcat/FAQ/CharacterEncoding

提交回复
热议问题