tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefanos Karasavvidis <ste...@multimedia-sa.gr>
Subject Re: request.getParameter and encoding
Date Tue, 05 Sep 2000 14:37:16 GMT
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



Mime
View raw message