From e1cecbb233b04dbe714ce3e03974b714f7ec3b5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Mon, 26 Sep 2016 15:50:31 +0200 Subject: [PATCH] HLE_OS: Convert debug messages from SJIS to UTF-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It looks like the debug output is also output as SJIS (similar to OSReport text), so we need to convert it to UTF-8 to prevent it from all showing up as �. This doesn't fix all display issues, but fixes all SJIS/UTF-8 related ones. --- Source/Core/Core/HLE/HLE_OS.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/Core/HLE/HLE_OS.cpp b/Source/Core/Core/HLE/HLE_OS.cpp index da8e04c6c8..49da2e92e2 100644 --- a/Source/Core/Core/HLE/HLE_OS.cpp +++ b/Source/Core/Core/HLE/HLE_OS.cpp @@ -43,7 +43,7 @@ void HLE_GeneralDebugPrint() NPC = LR; - NOTICE_LOG(OSREPORT, "%08x->%08x| %s", LR, PC, report_message.c_str()); + NOTICE_LOG(OSREPORT, "%08x->%08x| %s", LR, PC, SHIFTJISToUTF8(report_message).c_str()); } // __write_console is slightly abnormal @@ -53,7 +53,7 @@ void HLE_write_console() NPC = LR; - NOTICE_LOG(OSREPORT, "%08x->%08x| %s", LR, PC, report_message.c_str()); + NOTICE_LOG(OSREPORT, "%08x->%08x| %s", LR, PC, SHIFTJISToUTF8(report_message).c_str()); } std::string GetStringVA(u32 strReg)