title: Getting unicode values from System.in
body: <p>I have created a <code>Scanner</code> that gets input from <code>System.in</code> so that I can get input from the console.</p>
  
  <pre><code>Scanner scanner = new Scanner(System.in, "UTF-8");
  </code></pre>
  
  <p>When I do</p>
  
  <pre><code>String s = scanner.next();
  </code></pre>
  
  <p>and then input <code>Слово דבר</code> in the console, the value of the string becomes <code>???? ???</code>. </p>
  
  <p>The console is able to display Unicode characters, but why can't I read them?</p>