[xml] What is the document's encoding?

I'm using SAX and parsing both xml and html docs.  Can I find out
what encoding the original document was in (or was converted from)?

I can use ctxt->input->encoding to get the encoding specified in a
meta http-equiv, but what I want to know is what encoding libxml2
thought the document was in when it was parsed.  And also what
encoding was assumed if a charset is not specified in the source doc.


Bill Moseley
moseley hank org

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