title: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte
body: <p>I am trying to read the page source of a web page by this code:</p>
  <pre><code>from urllib.request import urlopen
  
  url = &quot;http://www.tsetmc.com/Loader.aspx?ParTree=15&quot;
  
  page = urlopen(url)
  
  htmlSource = page.read().decode(&quot;utf-8&quot;)
  
  f=open(&quot;output.txt&quot;,'w')
  f.write(htmlSource)
  </code></pre>
  <p>but I get this erroe:</p>
  <pre><code>UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte
  </code></pre>
  <p>I dont know if this page is encoded with utf-8 or not.</p>
  <p>Thanks for your help.</p>