title: Encoding text with multiple encodings
body: <p>I am trying to open a <code>txt</code> file in python and reading it using <code>open()</code> and <code>read()</code>, the problem is that some of the text is not UTF-8. Here is the error:</p>
  
  <blockquote>
    <p>UnicodeDecodeError: 'charmap' codec can't decode byte 0x8f in position
    1911885: character maps to </p>
  </blockquote>
  
  <p>How can I read this document?</p>