-
Notifications
You must be signed in to change notification settings - Fork 15
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 APIs should be used in functions.rb #19
Comments
I started a wide_functions branch that did a big chunk of the work, but I think the descriptions are messed up right now. Need to investigate. |
Came here after poking around on win32-eventlog trying to get it to emit utf-8. Caveat: This is my first try at doing anything with UTF-16 on Windows. The main change was this: windows/functions.rb: Change all ANSI functions to Unicode (FormatMessageA -> FormatMessageW, etc) The remaining problems I encounter are:
I am not completely successful on this yet, so I haven't any PR to propose. Just documenting my research on a path to Unicode event strings ;P |
@jordansissel may be you can use MultiByteToWideChar(...) ? it`s native WinAPI function and it have to be correct with \0\0 chracters. // logstash-input-eventlog-0.6.7 does not works with cyrilic windows :( i get messages like "\xEF\xF0\xE8\xE2\xE5\xF2" instead of "привет" |
Is this being actively worked on? The library is great but is causing some text to be improperly encoded. |
@iantalarico Not at the moment. I started working on it, but ran into some issues. I've been lazy, mostly because I don't really use this library any more. I'll try to get back to it, but PR's are welcome. |
@djberg96 Thanks for the fast response. If I find some time I may send you a PR. |
I believe I have this issue with td-agent 3.1.1/fluentd 1.0.2 and fluent-plugin-windows-eventlog 0.2.2. any way to verify if source processing is the problem or backend? example issue with process_information.process_command_line of eventid 4688 |
ANSI APIs at https://github.com/djberg96/win32-eventlog/blob/ffi2/lib/win32/windows/functions.rb should be replaced with their wide character equivalents to properly support international versions of Windows.
The text was updated successfully, but these errors were encountered: