Requests module encoding provides different encode then HTML encode
<p>The request module <code>encoding</code> provides different encoding then the actual set encoding in HTML page</p>

<p><strong>Code:</strong></p>

<pre><code>import requests
URL = "http://www.reynamining.com/nuevositio/contacto.html"
obj = requests.get(URL, timeout=60, verify=False, allow_redirects=True)
print obj.encoding
</code></pre>

<p><strong>Output:</strong></p>

<pre><code>ISO-8859-1
</code></pre>

<p>Where as the actual encoding set in the HTML is <code>UTF-8</code> <code>content="text/html; charset=UTF-8"</code></p>

<p>My Question are:</p>

<ol>
<li>Why is <code>requests.encoding</code> showing different encoding then the encoding described in the HTML page?.</li>
</ol>

<p>I am trying to convert the encoding into UTF-8 using this method <code>objReq.content.decode(encodes).encode("utf-8")</code> since it is already in <code>UTF-8</code> when I do decode with ISO-8859-1 and encode with UTF-8 the values get changed i.e.) <code>á</code>changes to this <code>Ã</code></p>

<p>Is there any way to convert all type of encodes into UTF-8 ?</p>