title: UnicodeDecodeError: 'utf-8' codec can't decode byte 0x81 in position 76: invalid start byte
body: <p>I want to create a program that decodes wifi passwords.
  I am not finished yet, but the program should print the names of all wifis. But there is this error and
  I don't know how to fix it.</p>
  <pre><code>import subprocess
  
  data = subprocess.check_output([&quot;netsh&quot;, &quot;wlan&quot;, &quot;show&quot;, &quot;profiles&quot;]).decode(&quot;utf-8&quot;).split(&quot;\n&quot;)
  wifis = [line.split(&quot;:&quot;)(1)[1:-1] for line in data if &quot;All User Profile&quot; in line]
  print (data)
  </code></pre>
  <p>Error:</p>
  <pre><code>data = subprocess.check_output([&quot;netsh&quot;, &quot;wlan&quot;, &quot;show&quot;, &quot;profiles&quot;]).decode(&quot;utf-8&quot;).split()
    UnicodeDecodeError: 'utf-8' codec can't decode byte 0x81 in position 76: invalid start byte
  </code></pre>