title: Python: UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte
body: <p>I am fetching data from a catalog and it's giving data in bytes format.</p>
  
  <p>Bytes data:</p>
  
  <pre><code>b'\x80\x00\x00\x00\n\x00\x00%\x83\xa0\x08\x01\x00\xbb@\x00\x00\x05p 
  \x02\x00&gt;\xf3\x00\x00\x00}\x02\x00`\x03\xef0\x00\x00\r\xc0 
  \x06\xf0&gt;\xf3\x00\x00\x02\x88\x02\x03\xec\x03\xef0\x00\x00/.....'
  </code></pre>
  
  <p>While converting this data in string or any readable format I'am getting this error:</p>
  
  <pre><code>UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte
  </code></pre>
  
  <p>Code which I used(Python 3.7.3):</p>
  
  <pre><code>blobs = blob.decode('utf-8')
  </code></pre>
  
  <p>AND</p>
  
  <pre><code>import json
  json.dumps(blob.decode())
  </code></pre>
  
  <p>I've also used <code>pickle</code>, <code>ast</code> and <code>pprint</code> but they are not helpful here.</p>
  
  <p>What I tried:</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/22216076/unicodedecodeerror-utf8-codec-cant-decode-byte-0xa5-in-position-0-invalid-s">UnicodeDecodeError: &#39;utf8&#39; codec can&#39;t decode byte 0xa5 in position 0: invalid start byte</a></li>
  <li><a href="https://stackoverflow.com/questions/42339876/error-unicodedecodeerror-utf-8-codec-cant-decode-byte-0xff-in-position-0-in">error UnicodeDecodeError: &#39;utf-8&#39; codec can&#39;t decode byte 0xff in position 0: invalid start byte</a></li>
  <li><a href="https://stackoverflow.com/questions/21504319/python-3-csv-file-giving-unicodedecodeerror-utf-8-codec-cant-decode-byte-err">Python 3 CSV file giving UnicodeDecodeError: &#39;utf-8&#39; codec can&#39;t decode byte error when I print</a>
  <a href="https://stackoverflow.com/questions/36825972/utf-8-codec-cant-decode-byte-0x80">&#39;utf-8&#39; codec can&#39;t decode byte 0x80</a></li>
  <li><a href="https://stackoverflow.com/questions/38518023/unicodedecodeerror-utf8-codec-cant-decode-byte-0x80-in-position-3131-invali">UnicodeDecodeError: &#39;utf8&#39; codec can&#39;t decode byte 0x80 in position 3131: invalid start byte</a></li>
  <li><a href="https://www.edureka.co/community/52722/unicodedecodeerror-codec-decode-position-invalid-start-byte" rel="nofollow noreferrer">https://www.edureka.co/community/52722/unicodedecodeerror-codec-decode-position-invalid-start-byte</a></li>
  </ul>