kevva / wifi-password

Get current wifi password
MIT License
617 stars 54 forks source link

Windows codepage issues should be documented #18

Open AtomicVar opened 5 years ago

AtomicVar commented 5 years ago

The module cannot work on Windows if the Windows is running in some languages, e.g. Chinese.

The problem is that netsh outputs differently under different codepages. On Chinese Windows, the default codepage is 936. Only after I run chcp 65001 can I get the proper password. Without that, I get an error Error: Could not get password.

I think it should be documented in README or somewhere.

Richienb commented 3 years ago

https://stackoverflow.com/a/46620616/8384910