title: How to correct change encoding of post query?
body: <p>When I send post to my page without setCharacterEncoding on server-side, I get <code>С„С‹РІ</code>. With <code>setCharacterEncoding(UTF-8)</code>, I get <code>С‹РІР°</code>. How to correct change character encoding of POST query?</p>
  
  <p>P.S.: I read data from ServletInputStream.</p>
  
  <p>Code below.</p>
  
  <pre><code>doPost
  req.setCharacterEncoding("UTF-8");
  BufferedReader r = new BufferedReader(new InputStreamReader(req.getInputStream()));
  String line;
  while ((line = r.readLine()) != null) {
      System.out.println(line);
  }
  </code></pre>