How do I handle invalid characters to be able to parse through the data in Python?
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: ??
When trying to validate the data, I get the error at this point which says:
Char 0x0 out of allowed range.
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?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…