Thursday, 3 October 2013

convert unicode to string in java

convert unicode to string in java

URL with string text
HttpGet request = new
HttpGet("http://localhost:8090/Servlet/ServletTest?to=3274&from=34875&sms=testtest");
to get value of above url parameter i used following code
while(en.hasMoreElements())
{
Object o1=en.nextElement();
to1=(String)o1;
to2=request.getParameter(to1);
Object o2=en.nextElement();
from1=(String)o2;
from2=request.getParameter(from1);
Object o3=en.nextElement();
text1=(String)o3;
text2=request.getParameter(text1);
}
Url with unicode text
HttpGet request = new
HttpGet("http://localhost:8090/Servlet/ServletTest?to=3274&from=34875&sms=0915094D092F093E00200917093E0902091709410932094000200915094B");
How to get parameter value as string from unicode value

No comments:

Post a Comment