title: Remove all characters which cannot be decoded in Python
body: <p>I try to parse a html file with a Python script using the <code>xml.etree.ElementTree</code> module. The charset should be UTF-8 according to the header. But there is a strange character in the file. Therefore, the parser can't parse it. I opened the file in Notepad++ to see the character <img src="https://i.stack.imgur.com/vFwKv.png" alt="FS">. I tried to open it with several encodings but I don't find the correct one.</p>
  
  <p>As I have many files to parse, I would like to know how to remove all bytes which can't be decode. Is there a solution?</p>