在前端URIEncoding="UTF-8"String Text = new String(request.getParameter("Text").getBytes("8859_1"),"UTF-8");但是,当我从tomcat server.xml中删除"URIEncoding="UTF-8"时,这些字符加
我使用的是grails 1.3.7和tomcat 7.0.22。characterset set to UTF-8)
- Set URIEncoding="UTF-8" useBodyEncodingForURI="true" to the server.xml file in tomcat但是,当我提交一个unicode字符时,grails不支持该字符,并且乱码将被保存。我在谷歌上到处搜索,并阅读了人们在这个问题上寻求帮助的文章,但不幸的是,解决方案对我并不起作用。为什么grails和/或