diff --git a/SystemInformer/dbgcon.c b/SystemInformer/dbgcon.c index fb9d12907f70..ba55a05a3491 100644 --- a/SystemInformer/dbgcon.c +++ b/SystemInformer/dbgcon.c @@ -29,6 +29,8 @@ #include #include #include +#include +#include typedef struct _STRING_TABLE_ENTRY { @@ -85,6 +87,10 @@ VOID PhShowDebugConsole( _wfreopen(L"CONOUT$", L"w", stderr); _wfreopen(L"CONIN$", L"r", stdin); + _setmode(_fileno(stdout), _O_U8TEXT); + _setmode(_fileno(stderr), _O_U8TEXT); + _setmode(_fileno(stdin), _O_U8TEXT); + SetConsoleCP(CP_UTF8); SetConsoleOutputCP(CP_UTF8);