[xml] utf-8 encoding and xmlSAXParseMemory



Hi there,

I am working on a xml parser using libxml2 and I have got one problem that I 
don't know how to solve. Let me explain myself:
The purpose of the parser is to take many different xml feeds and to do some 
treatments on it. The problem is that these feeds are from very different 
sources on which I don't have control. Sometimes they contains invalid 
encoded characters but I would like to be able to parse them anyway....
Is there a way to tell to xmlSAXParseMemory function to ignore encoding issues 
when creating the dom tree?
If not, is there another way to proceed other than correcting the invalid 
encoded characters? 

Thanks for your answers

-- 
Olivier



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]