Problem with passing Japanese values to a servlet

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 UTC