< OpenClinica User Manual

support for special characters

editing server.xml

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

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

This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.