W3C home > Mailing lists > Public > www-international@w3.org > April to June 2002

Problem with passing Japanese values to a servlet

From: mubariz kharbe <mubariz_kharbe@infosys.com>
Date: Tue, 11 Jun 2002 11:40:45 +0900
Message-Id: <4.2.0.58.J.20020611114038.00aa4868@localhost>
To: www-international@w3.org


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
Received on Tuesday, 11 June 2002 09:12:29 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 2 June 2009 19:16:59 GMT