Hi, I am running a web application using Jsp/Servlet With Tomcat 4.1.18 as the Servlet Container. I have a Jsp Page where in I am displaying a Link for Editing a Particular Record like as shown below:-
Page1.jsp:- <%@ page language="java" contentType="text/html; charset=windows-1256"%> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1256"> <meta http-equiv="Content-Language" content="ar-sa"> <meta name="GENERATOR" content="Microsoft FrontPage 5.0"> <meta name="ProgId" content="FrontPage.Editor.Document"> </head> <body> ...... <a href="edit.jsp?accountName=<%=ad.getAccountName()%>"> where ad object is stored in Session. ad.getAccountName() stores a Arabic String in Unicode and because of the meta-tag at top it is rendered in Arabic on JSP page. </body> </html> Now on Edit.jsp Page When I try to convert that Arabic String back to Unicode using the code as shown below it gets converted to Unicode and hence my search inside session variable for that record succeeds. Then I display all the details for that Record. Edit.jsp page:- <%@ page language="java" contentType="text/html; charset=windows-1256" %> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1256"> <meta http-equiv="Content-Language" content="ar-sa"> <meta name="GENERATOR" content="Microsoft FrontPage 5.0"> <meta name="ProgId" content="FrontPage.Editor.Document"> </head> <body> ...... <% String accName = new String( request.getParameter("accountName").getBytes("ISO8859_1") , "Cp1256"); ..... %> Now here after this conversion I am getting the Arabic String back in Unicode. This sequence of Code works fine with Tomcat 4.0.1,Tomcat 4.1.18 But it does not work with Tomcat 4.1.24 and Tomcat 4.1.27. Can Anyone tell me why is this happening and whats the remedy. I have confirmed the same after printing the binary sequences with my utility. Also I noted that on Jsp Page or inside Servlets When I try to get the Request Encoding using request.getCharacterEncoding(), it always returns NULL . Why is this happening? Waiting for Early Reply. Thanks Mumtaz --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]