forked from ShuriZma/suyu
1
0
Fork 0

debugger: console: Set console output codepage to UTF-8

This allows the console to display multi-byte encoded characters.
This commit is contained in:
Morph 2022-02-13 18:18:05 -05:00
parent eaca010ee9
commit 54c7af9902
1 changed files with 1 additions and 0 deletions

View File

@ -30,6 +30,7 @@ void ToggleConsole() {
freopen_s(&temp, "CONIN$", "r", stdin); freopen_s(&temp, "CONIN$", "r", stdin);
freopen_s(&temp, "CONOUT$", "w", stdout); freopen_s(&temp, "CONOUT$", "w", stdout);
freopen_s(&temp, "CONOUT$", "w", stderr); freopen_s(&temp, "CONOUT$", "w", stderr);
SetConsoleOutputCP(65001);
SetColorConsoleBackendEnabled(true); SetColorConsoleBackendEnabled(true);
} }
} else { } else {