Skip to content

utf-8 error #19

Open
Open

Description

@yadavsunny111

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

Activity

  1. temal32 commented on Oct 3, 2021

    @temal32

    Same for me, did you fix it?

  2. anilgundal commented on Dec 10, 2021

    @anilgundal

    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
  3. Lord-baba99 commented on Jun 11, 2022

    @Lord-baba99

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions