OpenEMM-2011 Tomcat encoding issue

Use this forum to report bugs and to check for bugfixes and new releases of OpenEMM

Moderator: moderator

pechkinmail
Posts: 1
Joined: Mon Aug 01, 2011 4:12 pm

OpenEMM-2011 Tomcat encoding issue

Post by pechkinmail » Tue Aug 02, 2011 2:33 pm

I'm using OpenEMM 2011 with UTF-8 encoding. After updating profile of a recipient using form (for example, the default form en_profil) the data is saved with a wrong charset (non-utf8). The problem was solved by adding in the file conf/server.xml property URIEncoding="UTF-8" to the connectors. In other words, strings

Code: Select all

<Connector port="8080" protocol="HTTP/1.1"
      connectionTimeout="20000"
      redirectPort="8443" />
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
were replaced by

Code: Select all

<Connector port="8080" protocol="HTTP/1.1"
      connectionTimeout="20000"
      redirectPort="8443" 
      URIEncoding="UTF-8" />
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" URIEncoding="UTF-8" />

maschoff
Site Admin
Posts: 2157
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Re: OpenEMM-2011 Tomcat encoding issue

Post by maschoff » Tue Aug 02, 2011 7:23 pm

Thanks for sharing this tip!
OpenEMM Maintainer

rays
Posts: 2
Joined: Fri Aug 26, 2011 12:54 pm

Re: OpenEMM-2011 Tomcat encoding issue

Post by rays » Fri Aug 26, 2011 1:00 pm

Hi,

I have the same issue and have amended conf/server.xml to this:

Code: Select all

    <Connector port="8080" protocol="HTTP/1.1" 
               connectionTimeout="20000" 
               redirectPort="8443"
	       URIEncoding="UTF-8" />
    <!-- A "Connector" using the shared thread pool-->
    <!--
    <Connector executor="tomcatThreadPool"
               port="8080" protocol="HTTP/1.1" 
               connectionTimeout="20000" 
               redirectPort="8443" />
    -->           
    <!-- Define a SSL HTTP/1.1 Connector on port 8443
         This connector uses the JSSE configuration, when using APR, the 
         connector should be using the OpenSSL style configuration
         described in the APR documentation -->
    <!--
    <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
               maxThreads="150" scheme="https" secure="true"
               clientAuth="false" sslProtocol="TLS" />
    -->

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

Despite the above and stopping/restarting OpenEMM (so Tomcat also restarts), I still have the same issue. This is on a new install.

Is there something additional to the above required?

Thanks, in advance, for your good advice.

Ray Saunders
World Scout Bureau

Post Reply