It is necessary to read a string from the html file, and continue to do some actions, but the problem is that the string instead of Russian letters is read from the file garbage. With other files, everything was always fine. The problem, I think, is in the file. Tried to do
setlocale(LC_ALL, "UTF-8"); SetConsoleCP(1251); SetConsoleOutputCP(1251); Had tried
setlocale(LC_ALL, "ru_RU.UTF-8"); setlocale(LC_ALL, "en_US.UTF-8"); Nothing helps. html file picked up by saving the page manually. There are no problems with other files, the problem is only with .html files. 
I read from the file like this:
getline(FileStreamOut, ParseStr) How to make Russian characters normally recorded in a string?
FileStreamOutandParseStr? - acade