-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unicode View Support For OutputDebugStringW #389
Comments
I am not sure what the question is here? if you are looking for a way to
send special characters, I suggest you try to use UTF-8 encoding through
the OutputDebugStringA function? I think this how chinese users of
debugview are doing it...
Later>> no sorry I was confusing two projects, debugviewpp has no UTF-8 support.
|
Example: Change setting to Japanese. or Korean language. In DebugView++ show: "????"; |
Please try changing the setting above, you can find it by searching for "Region" in the start menu, and send messages using OutputDebugStringW() and encoded as UCS-2 (windows own variant of UTF-16) |
You mean when the language in the OutputDebugStringW is different from the non-unicode programs setting in the Region dialog? |
well, debugview does not support UTF-8 natively, in code I assume everything is in UCS-2 but this windows feature might help, I am not sure. I will do some more testing. Let me know if you already found a solution? |
https://learn.microsoft.com/en-us/windows/win32/api/debugapi/nf-debugapi-waitfordebugeventex
https://learn.microsoft.com/zh-cn/windows/win32/api/debugapi/nf-debugapi-outputdebugstringw#remarks
OutputDebugStringW does internally call OutputDebugStringA, so Unicode characters that cannot be represented in the system code page will be replaced with ?.
Oddly enough, the OUTPUT_DEBUG_STRING_INFO structure the debugger receives from the operating system to print the message does appear to support letting the debugger know if the string is Unicode, it just doesn't appear to be used by OutputDebugStringW at all.
Unfortunately, I don't know of a mechanism to get the OS to raise a OUTPUT_DEBUG_STRING_EVENT with a Unicode string. It may not be possible with public APIs.
ref:
WaitForDebugEventEx function (debugapi.h)
windows - Is there a Unicode alternative to OutputDebugString? - Stack Overflow
The text was updated successfully, but these errors were encountered: