From cacaded0cd1804ed115fba6e1ce56e8cf3cec2c8 Mon Sep 17 00:00:00 2001 From: phantom10111 Date: Wed, 10 Apr 2024 11:13:42 +0200 Subject: [PATCH] Windows: Set console output codepage to UTF-8 --- src/RageLog.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/RageLog.cpp b/src/RageLog.cpp index 929256bd6c..c4bab18fca 100644 --- a/src/RageLog.cpp +++ b/src/RageLog.cpp @@ -188,6 +188,7 @@ void RageLog::SetShowLogOutput( bool show ) { // create a new console window and attach standard handles AllocConsole(); + SetConsoleOutputCP(CP_UTF8); freopen( "CONOUT$","wb", stdout ); freopen( "CONOUT$","wb", stderr ); }