Note that there are some explanatory texts on larger screens.

plurals
  1. POGrails spaces decoded as plus signs if parameter text is ASCII
    primarykey
    data
    text
    <p>I have a problem in my production Grails app with decoding POST request parameters.</p> <p>Whenever a parameter contains ASCII characters only, all the spaces in the text are decoded as '+' signs. So, instead of '<strong><em>this is a test</em></strong>' controller gets '<strong><em>this+is+a+test</em></strong>' parameter value. </p> <p>More to that, <strong>if the parameter text contains even a single non ASCII character</strong>, say, we replace latin 'a' with cyrillic 'a', <strong>the problem is gone</strong>.</p> <p>And yes, everything is Ok while running application on Windows 7 development machine in Intellij Idea IDE 11.x or as a war archive deployed to standalone local Tomcat 7.0.29.</p> <p>The production app is deployed as war archive with all dependencies to Ubuntu/Tomcat 7.0.21 on SSL connector port 8443. The connector is configured with attribute <em>URIEncoding="UTF-8"</em></p> <p>The settings in Config.groovy are</p> <ul> <li>grails.views.gsp.encoding = "UTF-8"</li> <li>grails.converters.encoding = "UTF-8"</li> <li>grails.views.gsp.sitemesh.preprocess = true</li> </ul> <p>All gsp's have meta declaration <em>http-equiv="Content-Type" content="text/html; charset=UTF-8"</em> in the head element. </p> <p>The application plugins are <em>webxml:1.4.1</em>, <em>tomcat:$grailsVersion</em>, <em>hibernate:$grailsVersion</em>, <em>spring-security-core:1.2.7.3</em>, <em>spring-security-openid:1.0.4</em></p> <p>As a last attempt I tried to upgrade Grails version from 2.2.0 to the latest 2.2.2 but no result.</p> <p>It seems my case is opposite to many others like these</p> <ul> <li><a href="https://stackoverflow.com/questions/9179574/grails-request-parameters-encoding-issue-in-tomcat">Grails request parameters encoding issue in Tomcat</a></li> <li><a href="http://9exception.com/question/168139" rel="nofollow noreferrer">http://9exception.com/question/168139</a></li> <li><a href="https://stackoverflow.com/questions/10856493/form-encoding-problems-on-grails-2-0">Form Encoding Problems on GRAILS 2.0</a></li> <li><a href="https://stackoverflow.com/questions/10511497/grails-not-encoding-the-uniocde-characters-properly">Grails not encoding the unicode characters properly</a></li> </ul> <p>Can anyone help?</p> <p>Thanks.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload