some tips from me

1. mask non standart characters with html entitys like   that you display 
in html pages, if there exist some one.
2. setting response contentType, with <%@ page contentType=
3. adding to the head of your html page
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15">
4. test different browsers
5. does the browser have fonts with the characters?

which browser you use?

On Sunday 15 December 2002 09:23, Galbayar Dorjgotov wrote:
> 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>


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>

Reply via email to