I am using the below two lines in my servlet to display the arabic URL parameter
response.setContentType("text/html; charset=UTF-8");
String s = new String(request.getParameter("p").getBytes("8859_1"), "UTF-8");
Note that in the above code if I am passing the parameter p as arabic character for example:
http://localhost/sample/MyServlet?p=عربي
then its displays the return as as ?????? characters
Any suggestion will be appreciated