Korean message using Windows.OutputDebugStringW is displayed incorrectly in 'Event Log' window.
The value of string variable including Korean is displayed correctly in 'Local Variables' window.
When executed standalone, it is displayed correctly in the debug view.
https://docs.microsoft.com/en-us/sysinternals/downloads/debugviewfunction TestOutputDebugStringW(): Integer;
var
test_msg: string = 'abc가나다';
test_msg_u: UnicodeString;
begin
test_msg_u := lazUTF8.UTF8ToUTF16(test_msg);
Windows.OutputDebugStringW(PWideChar(test_msg_u));
result := 1; // to set breakpoint
end;
Windows 10, Lazarus 2.2.2 windows 64bit, FPC 3.2.2