Maciej Rumianowski's Weblog 

UTF-8 URL Encoding - Spring MVC on JBoss

by Maciej Rumianowski

Posted on Sunday Oct 06, 2013 at 07:33PM in General

For UTF-8 encoding of URLs and HTTP Requests there are 2 places that need setup. First is web.xml in which encoding Filter is added:



Second is JBoss server settings, where system properties need to be added:

        <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"/>

Additionally if someone is using MySQL as a database data sources should be also set properly. Construct connection url as is shown below (& should be escaped &amp;):


No one has commented yet.

Leave a Comment

HTML Syntax: NOT allowed