title: How to convert bytearray with non-ASCII bytes to string in python?
body: <p>I don't know how to convert Python's bitarray to string if it contains non-ASCII bytes. Example:</p>
  
  <pre><code>&gt;&gt;&gt; string='\x9f'
  &gt;&gt;&gt; array=bytearray(string)
  &gt;&gt;&gt; array
  bytearray(b'\x9f')
  &gt;&gt;&gt; array.decode()
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  UnicodeDecodeError: 'ascii' codec can't decode byte 0x9f in position 0: ordinal not in range(128)
  </code></pre>
  
  <p>In my example, I just want to somehow get a string '\x9f' back from the bytearray. Is that possible?</p>