Fortunately the solution is simple:
Edit JBOSS_HOME/server/${SERVER_NAME}/deploy/jboss-web.deployer/server.xml
Add URIEnconding="UTF-8" to the HTTP connector and AJP connector:
<Connector port="8080" address="${jboss.bind.address}"
maxThreads="250" maxHttpHeaderSize="8192"
emptySessionPath="true" protocol="HTTP/1.1"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" URIEncoding="UTF-8"/>
<!-- Define an AJP 1.3 Connector on port 8009 -->
<Connector port="8009" address="${jboss.bind.address}" protocol="AJP/1.3"
emptySessionPath="true" enableLookups="false" redirectPort="8443" URIEncoding="UTF-8"/>
Now restart your server and you should have no more problems with having non-latin characters in the URL.
1 comment:
Thank you very much, I've been looking for this so far ago without getting the rigth solution...This works fine for me..
Post a Comment