title: Java, converting non latin UTF-8 characters to proper string
body: <p>When I try to output string in Java like this:</p>
  <pre><code>System.output.println(&quot;Привет&quot;);
  </code></pre>
  <p>Console output shows me this result:</p>
  <pre><code>Привет
  </code></pre>
  <p>I have a REST API method where I receive string from outside request. When I send exact same <code>Привет</code> string with UTF-8 encoding and try to output it like this:</p>
  <pre><code>post(&quot;/check&quot;, (req, res) -&gt; {
      receivedString = req.body();
  }
  
  System.ouput.println(receivedString);
  </code></pre>
  <p>It shows this:</p>
  <pre><code>������
  </code></pre>
  <p>What I need to do in order to turn this questionmark thing into proper readable string?</p>