Worked on Linux , there were no problems with encodings at all. It was necessary now to work on Windows .
Everything seems to be fine, but there were no Russian symbols, only krakozyabry. Changed to others when:
SetConsoleCP(1251); SetConsoleOutputCP(1251); setlocale(LC_ALL, "Russian"); Dug in the registry, changed the font of the console, in general, all that is adequate in Google . After I decided to accidentally change SetConsoleCP(1251); at SetConsoleCP(CP_UTF8); (of course, and SetConsoleOutputCP(CP_UTF8); ).
There was a lot of joy, the native language in the console. But it took a couple of days and now you need to enter more Russian, but the program immediately falls. Judging by the debugger, the string is simply empty.
How can I fix this?
