1

I am new to programming, currently I am trying to output "Привет мир" (which is "Hello world") but I get ???? and some weird blocks, i have tried many solutions, but it doesnt help, can anyone please help me so that I could output russian text properly?

Thank you!

#include <iostream>

int main()
{
    std::cout <<"Привет мир";
}
Some programmer dude
  • 400,186
  • 35
  • 402
  • 621

1 Answers1

0

Have you tried changing the encoding settings?

There is a list of encodings in VS Code when you click on the lower right status bar where the encoding is shown. Choose to either reopen the file with a specific encoding or save the file with a specific encoding.

mg610
  • 31
  • 8