[xml] libxml2, howto force encoding



Is there a possibility to force a special encoding while parsing a xml file?
I have to parse files with apparently false encoding declaration :(
They are declared as <?xml version="1.0" encoding="UTF-8"?> but includes
characters from the iso-8859-1 charset. So the xmlParseFile() function
will abort of course. Any ideas to parse these files without modification
of the xml-files?

thanks in advance
Matthias Knoefel




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