Skip to content
Permalink
Browse files
Merge pull request #8341 from CookiePLMonster/win-utf8-console-output
ConsoleListenerWin: Properly output console logging in UTF-16
  • Loading branch information
JosJuice committed Sep 28, 2019
2 parents e28fccf + eab086b commit 9d64890
Showing 1 changed file with 2 additions and 1 deletion.
@@ -5,6 +5,7 @@
#include <windows.h>

#include "Common/Logging/ConsoleListener.h"
#include "Common/StringUtil.h"

ConsoleListener::ConsoleListener()
{
@@ -16,5 +17,5 @@ ConsoleListener::~ConsoleListener()

void ConsoleListener::Log(LogTypes::LOG_LEVELS level, const char* text)
{
::OutputDebugStringA(text);
::OutputDebugStringW(UTF8ToUTF16(text).c_str());
}

0 comments on commit 9d64890

Please sign in to comment.