----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

Hello Everybody !

Apache 1.3.6
JServ 1.0
Windows95 OSR2 PL

My problem is maybe more pure servlet related but I think there is somebody
who could answer me.

I live in Poland and I wonted to write a servlet that is receiving a data
form HTML form.

The problem is that the parameter names and values retrieved in doPost
method by

req.getParameterNames
req.getParameter( name )

do not depend on the charset I use ( Central Europe's: "iso-8859-2" or
"windows-1250". They are always in "iso-8859-1" charset so I cannot see my
polish special characters. There is everything OK when I perform the
following conversion:

String parValue;
//...
parValue = new String( req.getParameter( parName ).getBytes( "iso-8859-1" ),
"iso-8859-2" );

Can anybody provide me with some further explanation of that issue ? Maybe I
should specify in  my HTML form so that the server know the charset I use ?

sincerely Olek




--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to