request.getParameter("x") character conversion problem

admin

Administrator
Staff member
Hi there,I have a well working servlet application and a little bug: in the Servlet'sdoGet mehtod, the parX = request.getparameter("x");gives me the value of HTTP parameter "x", but I get ?s (question marks) insteadof two special Hungarian characters.I usePrintWriter out = new PrintWriter (new OutputStreamWriter(response.getOutputStream(),"Cp1250"));instead ofPrintWriter out = new PrintWriter (response.getOutputStream());and this way the output can contain fine Hungarian special characters, butmy problem is about is the input stream...Any idea is highly appreciated.Milan Horvath
 
Back
Top