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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user