How I can print the wchar_t values to console?

Edit: This doesn’t work if you are trying to write text that cannot be represented in your default locale. 🙁

Use std::wcout instead of std::cout.

wcout << ru << endl << en;

Leave a Comment