Skip to content
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

utf-8 error #19

Open
yadavsunny111 opened this issue Jul 19, 2021 · 3 comments
Open

utf-8 error #19

yadavsunny111 opened this issue Jul 19, 2021 · 3 comments

Comments

@yadavsunny111
Copy link

File "C:\Users\rahul\AppData\Local\Programs\Python\Python38\get_wifi.py", line 27, in
command_output = subprocess.run(["netsh", "wlan", "show", "profiles"], capture_output = True).stdout.decode()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x9d in position 499: invalid start byte

@temal32
Copy link

temal32 commented Oct 3, 2021

Same for me, did you fix it?

@anilgundal
Copy link

File "C:\Users\rahul\AppData\Local\Programs\Python\Python38\get_wifi.py", line 27, in command_output = subprocess.run(["netsh", "wlan", "show", "profiles"], capture_output = True).stdout.decode() UnicodeDecodeError: 'utf-8' codec can't decode byte 0x9d in position 499: invalid start byte

  1. OPEN windows10-wifi.py file
  2. GO to end of line 27 find .decode() and change to this .decode('iso-8859-1')
  3. same changes for line 50 and 59

@Lord-baba99
Copy link

Hi everyone, following the method of @anilgundal the error disappears but the script closes as soon as I run it.
Someone have an idea please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants