Output Unicode to Console Using C++
- by Jesse Foley
I'm still learning C++, so bear with me and my sloppy code. The compiler I use is Dev C++. I want to be able to output Unicode characters to the Console using cout. Whenver i try things like:
# #include directive here (include iostream)
using namespace std;
int main()
{
cout << "Hello World!\n";
cout << "Blah blah blah some gibberish unicode: ÐAßGg\n";
system("PAUSE");
return 0;
}
It outputs strange characters to the console, like µA¦Gg. Why does it do that, and how can i get to to display ÐAßGg? Or is this not possible with Windows?