dcsimg
problem with Passing Japanese values from ASP to servlet
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Mubariz_Kharbe
Posted On:   Monday, June 10, 2002 02:09 AM

Hi, In my application , I have to pass values from ASP to servlet. I am passing the value from asp using the following code url = "http://localhost:8080/SimpleServlet?MyData=" & data sendStr = cstr(rnd()) sendStr = sendStr & cstr(now()) Set httpOb = Server.CreateObject("Microsoft.XMLHTTP") httpOb.open "POST", urlStr, false httpOb.send sendStr At the servlet side I am retreiving the value using String getData = new String(request.getParameter("MyData").getBytes("8859_1"),"UTF8"); If I pass japanese v   More>>

Hi,



In my application , I have to pass values from ASP to servlet.



I am passing the value from asp using the following code



url = "http://localhost:8080/SimpleServlet?MyData=" & data

sendStr = cstr(rnd())

sendStr = sendStr & cstr(now())

Set httpOb = Server.CreateObject("Microsoft.XMLHTTP")

httpOb.open "POST", urlStr, false

httpOb.send sendStr



At the servlet side I am retreiving the value using



String getData = new String(request.getParameter("MyData").getBytes("8859_1"),"UTF8");



If I pass japanese values then I am getting the value of getData as ??.



What could be the problem and what should be the solution?



TIA


Mubariz

   <<Less
About | Sitemap | Contact