title: get standard encodings out of python
body: <p>So I have a bytes object but not sure of its encoding, but know it is not utf-8:</p>
  
  <pre><code>a.decode('utf-8')
  
  UnicodeDecodeError: 'utf-8' codec can't decode byte 0x9a in position 0: invalid start byte
  </code></pre>
  
  <p>What I would like to do is something like:</p>
  
  <pre><code>for encoding in encodings:
      try:
          a.decode(encoding)
          print("This is it!", encoding)
      except Exception:
          pass
  </code></pre>
  
  <p>How do you get Python to give you everything that will go into <code>.decode</code> as a list <code>encodings</code> so I can plug it in there? </p>