Change: [Win32] Set the console codepage to UTF-8

This commit is contained in:
glx22
2021-07-16 18:12:17 +02:00
committed by Loïc Guilloux
parent afea5e85ae
commit 16abdd5254
2 changed files with 3 additions and 6 deletions

View File

@@ -393,6 +393,9 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLi
* be available between subsequent calls to FS2OTTD(). */
char *cmdline = stredup(FS2OTTD(GetCommandLine()).c_str());
/* Set the console codepage to UTF-8. */
SetConsoleOutputCP(CP_UTF8);
#if defined(_DEBUG)
CreateConsole();
#endif