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.
Source code:
#include <stdio.h>
int main(void)
{
printf("\n\u2212\n");
return 0;
}
cl.exe:
warning C4566: character represented by universal-character-name '\u2212' cannot be represented in the current code page (1252)
How do I get Command Prompt to correctly display Unicode?