Return-Path: Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 93156 invoked from network); 5 Sep 2000 14:37:34 -0000 Received: from athena.multimedia-sa.gr (194.219.168.51) by locus.apache.org with SMTP; 5 Sep 2000 14:37:34 -0000 Received: from multimedia-sa.gr ([194.219.144.171]) by athena.multimedia-sa.gr with Microsoft SMTPSVC(5.5.1877.197.19); Tue, 5 Sep 2000 17:35:53 +0300 Message-ID: <39B5051C.7F9CC899@multimedia-sa.gr> Date: Tue, 05 Sep 2000 17:37:16 +0300 From: Stefanos Karasavvidis X-Mailer: Mozilla 4.75 [en] (Windows NT 5.0; U) X-Accept-Language: en,de-DE,el MIME-Version: 1.0 To: tomcat-user@jakarta.apache.org, jbator@maa.poznan.pl Subject: Re: request.getParameter and encoding References: <39B3E0F2.AE1B1B40@man.poznan.pl> Content-Type: text/plain; charset=iso-8859-7 Content-Transfer-Encoding: 7bit X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N try byte parametr[] = req.getParameter("PARAMETR").trim().getBytes("ISO-8859-1"); String text = new String(parametr, 0, parametr.length, "ISO-8859-2"); please let me know if this works Jacek Bator wrote: > I've try to get some strings sended from HTML page, ecoded iso-8859-2 > charset, with request.getParameter method, and insteed of my national > letters i'am getting ?????? signs. Is there any way to fix this some > how. I've tried mthods > like this: > > byte parametr[] = req.getParameter("PARAMETR").trim().getBytes(); > String text = new String(parametr, 0, parametr.length, "ISO-8859-2"); > > but it doesn't work > generaly i'am using Windows for this, with win98 everything was OK when > I've changed national settings to standard english(US). > But with NT/40 I can't do that, and I must run my servlets on NT/40 > I'am using Tomcat 3.1. > > Pleesssseeee I realy need help > > Jacek Bator > jbator@man.poznan.pl -- ====================================================================== Stefanos Karasavvidis Electronics & Computer Engineer e-mail : stefos@multimedia-sa.gr Multimedia Systems Center S.A. Kissamou 178 73100 Chania - Crete - Hellas http://www.multimedia-sa.gr Tel : +30 821 88447 Fax : +30 821 88427