How it is best of all to set the encoding in C++?
I got used to working with Unicode (and wchar_t, wstring, wcin, wcout<
I've just needed to output Unicode text to the console and only this function WriteConsoleW(GetStdHandle(STD_OUTPUT_HANDLE), ...); helped. For input I assume ReadConsoleW(GetStdHandle(STD_INPUT_HANDLE), ...); does the trick.
PS: WriteOutput has a limit in the output string size. So you might want to iterate it in chunks if it's longer.