Grails 2.3 web-xml and Tomcat URIEncoding -


i'm having grails 2.3.11 application deployed appfog (tomcat 6 instance) , having problem tomcat's default uriencoding set iso-8859-1 (croatian characters received through request unusable). found that, in case, connector settings within tomcat's server.xml should configured uriencoding="utf-8" option (i tested on docker image , it's working option). since i'm not sure can configure settings on appfog, i'm wondering there way (and how) through grails web-xml plugin (conf/webxmlconfig.groovy file?) (just note way go, other encodings gsp, jsp, html , file encodings set utf-8)

<?xml version="1.0" encoding="utf-8"?> <beans xmlns="http://www.springframework.org/schema/beans"     xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"     xsi:schemalocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">      <bean id="grailsapplication" class="org.codehaus.groovy.grails.commons.grailsapplicationfactorybean">         <description>grails application factory bean</description>         <property name="grailsdescriptor" value="/web-inf/grails.xml" />         <!-- <property name="grailsresourceloader" ref="grailsresourceloader" /> -->     </bean>      <bean id="pluginmanager" class="org.codehaus.groovy.grails.plugins.grailspluginmanagerfactorybean">         <description>a bean manages grails plugins</description>         <property name="grailsdescriptor" value="/web-inf/grails.xml" />         <property name="application" ref="grailsapplication" />     </bean>      <bean id="grailsconfigurator" class="org.codehaus.groovy.grails.commons.spring.grailsruntimeconfigurator">         <constructor-arg>             <ref bean="grailsapplication" />         </constructor-arg>         <property name="pluginmanager" ref="pluginmanager" />     </bean>      <!--      <bean id="grailsresourceloader" class="org.codehaus.groovy.grails.commons.grailsresourceloaderfactorybean" />     -->      <bean id="characterencodingfilter" class="org.springframework.web.filter.characterencodingfilter">         <property name="encoding">             <value>utf-8</value>         </property>     </bean>      <bean id="conversionservice" class="org.springframework.context.support.conversionservicefactorybean" /> </beans> 

there isn't way configure @ web.xml level, why grails has characterencodingfilter sets default encoding uff-8:

https://github.com/grails/grails-core/blob/558d22a1e67fede547f26745a60f84212299771f/grails-plugin-controllers/src/main/groovy/org/grails/plugins/web/controllers/controllersgrailsplugin.groovy#l87


Comments