Bug#573539: tomcat6: please set utf-8 as default character encoding

Thomas Koch thomas at koch.ro
Fri Mar 12 08:55:52 UTC 2010


Package: tomcat6
Version: 6.0.24-3
Severity: normal
Tags: patch

The default character encoding of tomcat currently is ISO-8859-1, if
nothing is specified in the request header[1].
I proposed on debian-devel[2] that any application in Debian should
assume utf-8 to be the default.
Please change the server.xml to specify utf-8 as the default:

@@ -68,7 +68,9 @@
     -->
     <Connector port="8080" protocol="HTTP/1.1"
                connectionTimeout="20000"
-               redirectPort="8443" />
+               redirectPort="8443"
+               URIEncoding="UTF-8"
+    />
     <!-- A "Connector" using the shared thread pool-->
     <!--
     <Connector executor="tomcatThreadPool"

[1] http://wiki.apache.org/tomcat/FAQ/CharacterEncoding#Q1
[2] http://lists.debian.org/debian-devel/2009/08/msg00277.html


-- System Information:
Debian Release: squeeze/sid
  APT prefers stable
  APT policy: (1000, 'stable'), (990, 'unstable'), (700, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages tomcat6 depends on:
ii  adduser                       3.112      add and remove users and groups
ii  tomcat6-common                6.0.24-3   Servlet and JSP engine -- common f

Versions of packages tomcat6 recommends:
pn  authbind                      <none>     (no description available)

Versions of packages tomcat6 suggests:
pn  tomcat6-admin                 <none>     (no description available)
pn  tomcat6-docs                  <none>     (no description available)
pn  tomcat6-examples              <none>     (no description available)
pn  tomcat6-user                  <none>     (no description available)

-- no debconf information





More information about the pkg-java-maintainers mailing list