tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "A jie" <ajie2...@msn.com>
Subject RE: Does from a filter setCharacterEncoding work for tc-5.0.27?
Date Thu, 03 Feb 2005 01:43:56 GMT




----------------------
 MSN:Ajie2000@msn.com
 QQ:29967409
---------------------




>From: "Zsolt Koppany" <zkoppanylist@intland.com>
>Reply-To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
>To: "'Tomcat Users List'" <tomcat-user@jakarta.apache.org>
>Subject: Does from a filter setCharacterEncoding work for tc-5.0.27?
>Date: Wed, 2 Feb 2005 15:33:07 +0100
>
>Hi,
>
>Does setCharacterEncoding work under tc-5.0.27 with java-1.4.2-06? To get
>UTF-8 request parameter I need to do:
>
>String par = request.getParameter("filename");
>String filename = new String(par.getBytes("ISO8859-1"), "UTF-8");
>
>request.setCharacterEncoding("UTF-8") doesn't seem to help from a filter.
>
>Is it my mistake?
>
>
>Zsolt Koppany
>Phone: +49-711-722 1874
>--
>Intland Software GmbH, Schulze-Delitzsch-Strasse 16
>D-70565 Stuttgart, Germany
>Phone: +49-711-722 1873, e-mail:zsolt.koppany@intland.com
>Fax: +49-711-722 1835
>
>
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>

it works success under tomcat5.5.4.you should conf a web.xml

_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger:  http://messenger.msn.com/cn  


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message