title: Unicode and Command Prompt (Windows)
body: <p>I'm getting to know the programming language C and I'm having some problems with encoding. When I write to Command Prompt via printf non-ASCII characters are display incorrectly. The source code file encoding is UTF-8.</p>
  
  <p>Source code:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int main(void)
  {
      printf("\n\u2212\n");
  
      return 0;
  }
  </code></pre>
  
  <p>cl.exe:</p>
  
  <p>warning C4566: character represented by universal-character-name '\u2212' cannot be represented in the current code page (1252)</p>
  
  <p>How do I get Command Prompt to correctly display Unicode?</p>