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