OpenClinica User Manual/uriencoding

From Wikibooks, open books for an open world
Jump to navigation Jump to search

support for special characters[edit | edit source]

editing server.xml[edit | edit source]

If you use OpenClinica out-of-the-box then you may experience some difficulties when it comes to special characters. For example you may have users like Adèle or Amélie and when you search for them they don't show up in the results. This has to do with the fact that tomcat is not handling the characters correctly.

To fix this you must edit the server.xml (and first you must make a copy of your server.xml, like server_20170223.xml).

The places to look for are the connectors and these can be http and / or ajp You change:

<Connector executor="tomcatThreadPool" port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" />

into

<Connector executor="tomcatThreadPool" port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" URIEncoding="UTF-8" />

and / or:

<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />

into

<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" URIEncoding="UTF-8" />

documentation[edit | edit source]

Documentation can be found at https://wiki.apache.org/tomcat/FAQ/CharacterEncoding