title: python subprocess encoding
body: <p>I'm trying to store the output of powershell in a var:</p>
  
  <pre><code>import subprocess
  subprocess.check_call("powershell \"Get-ChildItem -LiteralPath 'HKLM:SOFTWARE\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Uninstall' -ErrorAction 'Stop' -ErrorVariable '+ErrorUninstallKeyPath'\"", shell=True, stderr=subprocess.STDOUT)
  </code></pre>
  
  <p>this way, using <strong>check_call</strong>, it prints ok, for example: </p>
  
  <p><strong><em>DisplayName : Skype™</em></strong></p>
  
  <p>but this way it only prints to screen, so i have to use </p>
  
  <pre><code>import subprocess
  output = subprocess.check_output("powershell \"Get-ChildItem -LiteralPath 'HKLM:SOFTWARE\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Uninstall' -ErrorAction 'Stop' -ErrorVariable '+ErrorUninstallKeyPath'\"", shell=True, stderr=subprocess.STDOUT)
  </code></pre>
  
  <p>but then, using <strong>check_output</strong>, i get:</p>
  
  <p><strong><em>DisplayName : SkypeT</em></strong></p>
  
  <p>how can i work around this?</p>