cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Laurent Medioni" <>
Subject RE: Encoding
Date Fri, 17 Dec 2010 16:25:59 GMT
Setting container-encoding to UTF-8 enables you to share your servlet container (keeping its
Latin1 default) with other applications not supporting UTF-8 (and not fiddling with encodings...),
if relevant (we had the case...).

Have a look at
I think the comment you refer to tries to say that if no charset/encoding is set when producing
a response then assume the ISO8859-1 default value (do not ask why ;) ).

Alternatively try to do the equivalent of response.setContentType("text/html; charset=UTF-8")
in your XSL (<xsl:output encoding='utf-8'/> ? sorry from memory, not an XSL specialist...),
then you won't get the default encoding back.


-----Original Message-----
From: Peter Flynn [] 
Sent: vendredi, 17. décembre 2010 17:06
Subject: Re: Encoding

On 17/12/10 15:37, Laurent Medioni wrote:
> What is your 
> <init-param>
>       <param-name>container-encoding</param-name>
>       <param-value>UTF-8</param-value>
> </init-param>
> In web.xml ?

Interesting. ISO-8859-1, because

      Set encoding used by the container. If not set the ISO-8859-1 encoding
      will be assumed.
      Since the servlet specification requires that the ISO-8859-1 encoding
      is used (by default), you should never change this value unless
      you have a buggy servlet container.

I wouldn't call Tomcat buggy, exactly, but the servlet spec made a poor
choice in making ISO-8859-1 the default, given that the rest of the
planet is going down the UTF-{8|16|32|64} road :-)

Certainly fixes the problem though...very many thanks.


To unsubscribe, e-mail:
For additional commands, e-mail:


• This email and any files transmitted with it are CONFIDENTIAL and intended
  solely for the use of the individual or entity to which they are addressed.
• Any unauthorized copying, disclosure, or distribution of the material within
  this email is strictly forbidden.
• Any views or opinions presented within this e-mail are solely those of the
  author and do not necessarily represent those of Odyssey Financial
Technologies SA unless otherwise specifically stated.
• An electronic message is not binding on its sender. Any message referring to
  a binding engagement must be confirmed in writing and duly signed.
• If you have received this email in error, please notify the sender immediately
  and delete the original.
View raw message