I want my code to output unicode characters.
This is my code:
printf("\u2660"); //Spade character
When compiling and executing with Cygwin, it works just fine and the spade character (♠) is displayed.
However, it doesn't work with MinGW, as the UTF-8 encoding is displayed as three characters (ÔÖá).
In the executable, the character is stored as UTF-8 in both cases, so the issue doesn't come from compiling.
So, why is the console behaving differently between Cygwin and MinGW?
Is there a fix to display UTF-8 with MinGW too?