I am trying to output Russian words in Visual Studio 2008. I wrote:
#include <iostream> #include <locale.h> using namespace std; void main() { setlocale(LC_ALL,"rus"); cout << " -!"; }
When I pressed Ctrl + S to save the file in Visual Studio, I received the following prompt:
Some Unicode characters in this file cannot be stored in the current code page. Want to save it in Unicode?
I selected the option "Save with a different encoding" and selected "Cyrillic (Windows) - Codepage 1251". However, when I run my program, the console output looks like this:
???????? ??? ????
source share