On 09/29/2010 12:43 PM, Ron Van den Branden wrote:
 Hi again,

Thank you very much for the quick help; meanwhile I think I found an answer in a post on cocoon-dev: <http://markmail.org/message/nm6bnvqztbee4s5o>. There is stated that apparently (and counter-intuitively, IMO), 'request parameters are always decoded using ISO-8859-1 ', and that consequently 'container_encoding should always be ISO-8859-1 (unless you have a broken servlet container), and form_encoding should be the same one as on your serializer.'.

Actually, Tomcat does, but Jetty does not (by default, UTF8). According to specification, servlet engine are suppose to decode using ISO-8859-1 by default.


And lo: changing the (over-eager?) container-encoding parameter in web.xml back to the default:
<init-param>
<param-name>container-encoding</param-name>
<param-value>ISO-8859-1</param-value>
</init-param>

Do I understand this correctly: you have encoded everything in UTF8, but to able to read your input fields (UTF8) you need to decode their value with ISO-8859-1 on the server?

I have had cases where the browser was encoding in ISO-8859-1 despite the presence of Content-type set to "text/html; charset=UTF-8" (it simply ignored the HTTP header value).


...seems to do the trick!
(phew!)

(note: I found this info also at <http://wiki.apache.org/cocoon/RequestParameterEncoding#A3._Decoding_incoming_requests:_Servlet_Container>)

Thanks anyway,

Ron

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org



--
Andre H. Juffer              | Phone: +358-8-553 1161
Biocenter Oulu and           | Fax: +358-8-553-1141
Department of Biochemistry   | Email: andre.juf...@oulu.fi
University of Oulu, Finland  | WWW: www.biochem.oulu.fi/Biocomputing/
StruBioCat                   | WWW: www.strubiocat.oulu.fi
NordProt                     | WWW: www.nordprot.org
Triacle Biocomputing         | WWW: www.triacle-bc.com


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org

Reply via email to