Command prompt Windows and Visual Studio?

Console application in C++ at the command cout << "Hello people"; gives ??????, ?????.. Windows 7 English version.


How to fix this situation?


UPD


in most of the command line, you can write in Russian. not only in the application generated by Visual Studio
October 8th 19 at 00:27
6 answers
October 8th 19 at 00:29
Solution
#include <locale.h><br> int main()<br> {<br> setlocale (LC_ALL, "rus");<br> }<br> </locale.h>
October 8th 19 at 00:31
October 8th 19 at 00:33
As a result of treatment questions were replaced by strange symbols)
October 8th 19 at 00:35
chcp 1251? chcp 866? Also, in C++ there is a special letter to create Unicode strings.
L - xander_Kozey commented on October 8th 19 at 00:38
October 8th 19 at 00:37
By default, the windows console encoding is cp866, or free for a limited in the program from its (utf8?) free for a limited or predetermined sources (as far as I remember the VS editor allows you to specify the encoding of the edited file)
October 8th 19 at 00:39
em. try how to set the locale? maybe you are not all right.

Find more questions by tags Command lineCharacter encodingC++