-1

My target is to print euro sign - € in c++ application in Windows. Methods that already tried and did not working are:

#include <windows.h>
SetConsoleOutputCP(1252);
cout << "\u20a0";

also "\u20a0" did not working and without SetConsoleOutputCP(). No working solution by far. So much forums and questions, and no straight answer....

IntoTheDeep
  • 3,744
  • 13
  • 38
  • 76

1 Answers1

2

This worked for me

SetConsoleOutputCP(1252);
cout << (char)(128);
Moshe D
  • 748
  • 1
  • 4
  • 13