Convert OSREPORT text from SJIS to UTF-8
I'm not sure this is the correct fix, but it looks like OSREPORT output is Shift-JIS, so we need to convert it to UTF-8. Most characters work fine without and with this conversion, but Japanese text completely fails and results in outputting invalid UTF-8 (which gets shown as �).
This commit is contained in:
parent
4c9c456846
commit
c0be228c71
|
@ -11,6 +11,7 @@
|
|||
#include "Common/FileUtil.h"
|
||||
#include "Common/Logging/Log.h"
|
||||
#include "Common/MemoryUtil.h"
|
||||
#include "Common/StringUtil.h"
|
||||
#include "Common/Timer.h"
|
||||
#include "Core/ConfigManager.h"
|
||||
#include "Core/Core.h"
|
||||
|
@ -340,7 +341,7 @@ void CEXIIPL::TransferByte(u8& _uByte)
|
|||
|
||||
if (_uByte == '\r')
|
||||
{
|
||||
NOTICE_LOG(OSREPORT, "%s", m_buffer.c_str());
|
||||
NOTICE_LOG(OSREPORT, "%s", SHIFTJISToUTF8(m_buffer).c_str());
|
||||
m_buffer.clear();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue