title: HttpPost with StringEntity having special characters like ®, seeing ¿½` instead of ®
body: <p>I need to use special characters for <code>stringentity</code> as below.</p>
  
  <pre><code>DefaultHttpClient httpClient = new DefaultHttpClient();
  HttpPost httpPost = new HttpPost(url);
  HttpEntity entity = new StringEntity("test®");
  httpPost.setEntity(entity);
  httpPost.setHeader("Accept-Encoding", "UTF-8");
  
  HttpResponse response = httpClient.execute(httpPost);
  BufferedReader reader =  new BufferedReader(new InputStreamReader((response.getEntity().getContent())));
  while ((reader.readLine()) != null) {
      System.out.println (reader.readLine());
  }
  reader.close();
  </code></pre>
  
  <p>The output contains <code>testï¿½</code> instead of <code>test®</code> in the response.</p>