mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-01-26 10:03:34 +03:00
e395946194
Switch to UTF-8 if a document starts with '<?xm' to match old behavior. Also enable this check in the push parser. Fixes #637.
14 lines
304 B
Plaintext
14 lines
304 B
Plaintext
SAX.setDocumentLocator()
|
|
SAX.startDocument()
|
|
SAX.processingInstruction(xml, encoding="UTF-8")
|
|
SAX.startElement(html)
|
|
SAX.startElement(body)
|
|
SAX.startElement(p)
|
|
SAX.characters(öäüß, 8)
|
|
SAX.endElement(p)
|
|
SAX.characters(
|
|
, 1)
|
|
SAX.endElement(body)
|
|
SAX.endElement(html)
|
|
SAX.endDocument()
|