Try to convert all code files from CP1251 (or KOI8-R, not necessarily, you need to try) to any Unicode encoding, for example UTF-8 with specification. Notepad ++ can be used for this, but Visual Studio can also be used:
Open the files in Visual Studio, but instead of double-clicking them, do the following: right-click in the solution explorer> Open with ...> C ++ source code editor (with encoding)> "Cyrillic (Windows) - Codepage 1251" (or other cyrillic coding).
To save a Unicode-encoded file, follow these steps: File> Save As ... click on the triangle sign inside the Save button and select Save With Encoding ...> confirm overwrite> select any Unicode encoding, for example, "Unicode (UTF) -8 with signature) - Codepage 65001".
source share