Windows: Set console output codepage to UTF-8

This commit is contained in:
phantom10111
2024-04-10 11:13:42 +02:00
committed by teejusb
parent 3df79a3f11
commit cacaded0cd
+1
View File
@@ -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 );
}