1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-26 00:04:43 +01:00

Set console encoding to UTF-8 for Windows

This commit is contained in:
Ted John
2019-07-22 22:05:56 +01:00
parent ab5f5b20cd
commit 8cd684924e

View File

@@ -43,6 +43,8 @@ DLLEXPORT int LaunchOpenRCT2(int argc, wchar_t** argvW)
return -1;
}
SetConsoleCP(CP_UTF8);
SetConsoleOutputCP(CP_UTF8);
int exitCode = NormalisedMain(argc, const_cast<const char**>(argv));
FreeCommandLineArgs(argc, argv);