hi all. i have one problem. My JSP's enconding is windows-1251 and have a form. i'm wrote cyrillic characters and submit when i reading textfield value use getParameter() method it returns ???????? what's the matter? MY JSP is
<%@ page contentType="text/html; charset=windows-1251" language="java" import="java.io.*" errorPage="" %> <html> <head> <title>Untitled Document</title> </head> <body> <% String a1=request.getParameter("textfield"); out.println(a1); if (a1!=null){ InputStreamReader a=new InputStreamReader(new ByteArrayInputStream(a1.getBytes()),"windows-1251"); int gg=0; gg=a.read(); out.println((char)gg); a.close(); } %> <form name="form1" method="post" action=""> <input type="text" name="textfield"> <input type="submit" name="Submit" value="Submit"> </form> </body> </html> -- To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>