You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.
Hi! Huge thanks for your work on this great library!
Recently, I've been playing around with it in my Electron Project and found out that non-English symbols are not displayed correctly. I've seen similar issue and the corresponding PR that fixes it, but it seems like it's still the case.
Expected:
Actual behavior:
My Setup:
OS: Win10
Nodejs 16.10.0
usb-detection 4.14.1
How to reproduce:
rename a device on your machine adding some non-English symbols as written in the article
Try to detect devices using find method
The text was updated successfully, but these errors were encountered:
Hi! I am trying to debug the issue and dive a bit deeper. I haven't touched C++ since my uni classes and don't have a production experience with it. But what I've found out so far is that the symbols get corrupted even before we call the Utf8Encode function. So my guess is that it could be something wrong with the DllSetupDiGetDeviceRegistryProperty function which is imported from the dll. Could you please help me to investigate further and fix this?
If you want to try and fix this, I expect its a problem of this using the SetupDiGetDeviceRegistryPropertyA (ansi) method from the DLL instead of the SetupDiGetDeviceRegistryPropertyW (unicode) version. Maybe it will work if you switch which ones it is importing and fix up any resulting type errors?
Thanks @Julusian! I've just tried using SetupDiGetDeviceRegistryPropertyW and now it prints only first letters, I guess it has something to do with buf sizes 🤔
Hi! Huge thanks for your work on this great library!
Recently, I've been playing around with it in my Electron Project and found out that non-English symbols are not displayed correctly. I've seen similar issue and the corresponding PR that fixes it, but it seems like it's still the case.
Expected:
Actual behavior:
My Setup:
OS: Win10
Nodejs 16.10.0
usb-detection 4.14.1
How to reproduce:
find
methodThe text was updated successfully, but these errors were encountered: