XML validation error: Char 0x0 out of allowed range.
<p><strong>How do I handle invalid characters to be able to parse through the data in Python?</strong></p>

<p>I am currently using a REST API to obtain data from a source that produces data in the XML  format. However the XML data contains these characters: ¿¿</p>

<p>When trying to validate the data, I get the error at this point which says:</p>

<blockquote>
  <p>Char 0x0 out of allowed range.</p>
</blockquote>

<p>Due to which I am unable to parse this data. I'm not sure how to encode this data. What can I do to solve this problem?</p>