You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Zsolt Koppany <zk...@intland.com> on 2005/02/02 15:33:07 UTC
Does from a filter setCharacterEncoding work for tc-5.0.27?
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
RE: Does from a filter setCharacterEncoding work for tc-5.0.27?
Posted by Zsolt Koppany <zk...@intland.com>.
Thank you, but we cannot move to 5.5.4. How can I do the same with
tc-5.0.27?
Zsolt
> -----Original Message-----
> From: A jie [mailto:ajie2000@msn.com]
> Sent: Thursday, February 03, 2005 2:44 AM
> To: tomcat-user@jakarta.apache.org
> Subject: RE: Does from a filter setCharacterEncoding work for tc-5.0.27?
>
>
>
>
>
> ----------------------
> MSN:Ajie2000@msn.com
> QQ:29967409
> ---------------------
>
>
>
>
> >From: "Zsolt Koppany" <zk...@intland.com>
> >Reply-To: "Tomcat Users List" <to...@jakarta.apache.org>
> >To: "'Tomcat Users List'" <to...@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
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
RE: Does from a filter setCharacterEncoding work for tc-5.0.27?
Posted by A jie <aj...@msn.com>.
----------------------
MSN:Ajie2000@msn.com
QQ:29967409
---------------------
>From: "Zsolt Koppany" <zk...@intland.com>
>Reply-To: "Tomcat Users List" <to...@jakarta.apache.org>
>To: "'Tomcat Users List'" <to...@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