Hi all,

I am trying to use locale-encoding-mapping in my web.xml to set the encoding
of the HTTP-HEADER my tomcat 5.0.28 serves to utf-8.
One option is certainly to set that in each jsp individually, but from
reading e.g. slide 8 of
http://www.javapassion.com/j2eeadvanced/Servlet2.4Enhancements_speakernoted.
pdf , I get the impression that this should be doable for my entire web-app
via the web.xml, i.e. its "locale-encoding-mapping" attributes. I tried this
in many variants (details in
http://issues.apache.org/bugzilla/show_bug.cgi?id=32296), but with no
success.
Reading the mailing-list, it appears that others were not successful either:
  http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg106065.html
  http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg105678.html

Therefore my question - did anybody manage to have such attributes show an
effect?

One speculation from my part is that the defaults for the character
encodings are present hard-coded at least twice in the code and even if
web.xml gets processed, it gets overwritten afterwards again:
 - CharsetMapperDefault.properties has it and
 - LocaleToCharsetMap.java as well

Couldn't this redundancy be a source of errors?

    Any hints would be highly appreciated!

        Ralf


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to