Before when I did std::cout << char(1);
I used to get the smiley face as an output, now I am getting a box with a question mark inside it. I'v been told I need to change the code page so I did with code below, but without any result, I also used SetConsoleCP(437)
.
int main()
{
SetConsoleOutputCP(437);
std::cout << char(1);
}
So please can tell me a way to output the control character of the ASCII like they used to be.
Note: This issue started when I switch from XP to Windows10.