This content has been marked as final.
Show 2 replies
-
1. Re: Problem with getting a string with accents
wrzep Feb 28, 2008 12:22 PM (in response to romain.dev.easycity.com)Hi Romain,
What DB do you use? If you use MySQL, then you have to add useUnicode=true and characterEncoding=UTF-8 parmeters to your connection URL.
You may find those tips helpful: http://www.warski.org/blog/?p=4
Cheers,
-Pawel -
2. Re: Problem with getting a string with accents
romain.dev.easycity.com Feb 28, 2008 3:48 PM (in response to romain.dev.easycity.com)Thank you Pawel !
I found the solution in your post.
The URIEncoding attribute was missing in my tomcat server.xml configuration :
To have them properly handled by Tomcat, you need to edit the server.xml file, which is located: * in JBoss 4.0.x: $JBOSS_HOME/server/ <conf> /deploy /jbossweb-tomcat55.sar/server.xml * in JBoss 4.2: $JBOSS_HOME/server/ <conf> /deploy /jboss-web.deployer/server.xml and add to the appropriate <Connector ...> (usually the first one) the following attribute: URIEncoding="UTF-8".
Thank you very much.
Great article !
Romain