title: Reading UTF-8 characters from console
body: <p>I'm trying to read UTF-8 encoded polish characters from console for my c++ application.
  I'm sure that console uses this code page (checked in properties).
  What I have already tried:</p>
  
  <ul>
  <li>Using cin - instead of "zażółć" I read "za\0\0\0\0"</li>
  <li>Using wcin - instead of "zażółć" - same result as with cin</li>
  <li>Using scanf - instead of 'zażółć\0' I read 'za\0\0\0\0\0'</li>
  <li>Using wscanf - same result as with scanf</li>
  <li>Using getchar to read characters one by one - same result as with scanf</li>
  </ul>
  
  <p>On the beginning of the main function I have following lines:</p>
  
  <pre><code>setlocale(LC_ALL, "PL_pl.UTF-8");
  SetConsoleOutputCP(CP_UTF8);
  SetConsoleCP(CP_UTF8);
  </code></pre>
  
  <p>I would be really greatful for help.</p>