Sunday, December 23, 2012

Configuring jBoss for UTF-8 Character Encoding

 request.setCharacterEncoding("UTF8"); has only effect on POST requests, not on GET requests. For GET requests its need to be configured at servletcontainer level.

path :  jboss-as-7.1.0.Final --->   standalone ---> configuration --->standalone.xml 



<server xmlns="urn:jboss:domain:1.1">

   .......

    <system-properties>
        <property name="org.apache.catalina.
connector.URI_ENCODING" value="UTF-8"/>
        <property name="org.apache.catalina.
connector.USE_BODY_ENCODING_FOR_QUERY_STRING" value="true"/>
    </system-properties>





No comments: