Support UTF-8 Output on console

This commit is contained in:
Lord-Grey
2023-09-14 22:10:54 +02:00
parent 8c31e7822c
commit 8ecd25cb9f
3 changed files with 11 additions and 2 deletions

View File

@@ -15,4 +15,5 @@ void CreateConsole()
freopen_s(&fDummy, "CONOUT$", "w", stderr);
freopen_s(&fDummy, "CONIN$", "r", stdin);
SetConsoleTitle(TEXT("Hyperion"));
SetConsoleOutputCP(CP_UTF8);
}