title: Python selenium decode iso-8859-1 to UTF-8
body: <p>Im using selenium to extract data from a web page.
  Im trying to write this data into a file, but i have some trouble doing so, when i write special char like 'é' it create unreadable char in my file(Ã©).
  The website im getting the page from is encoded in iso-8859-1 and im using python 2.7.</p>
  
  <pre><code>browser = webdriver.Firefox()  
  browser.get(URL_SITE_ENCODED_IN_iso-8859-1)
  html = browser.page_source.decode('iso-8859-1') //error
  </code></pre>
  
  <p>From what i understood i have to decode the page from iso-8859-1 then it will encode it in utf-8, but when i try to an error is raised : <code>UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 246: ordinal not in range(128)</code></p>