On 25/09/2018 13:19, Nick Wellnhofer wrote:
libxml2 serializes documents without an encoding declaration differently than documents with an explicit UTF-8 encoding:

It seems that this was partially changed in 2005 with the following commit:


But this change only applies to text nodes, not attribute content. It also only applies when serializing with xmlNodeDumpOutput or xmlNodeDump, not when using the xmlSave API (which xmllint uses).

The whole situation is a mess. I'd love to change the code so that non-ASCII chars are always encoded as UTF-8, but I'm scared to break things.

xml mailing list, project page  http://xmlsoft.org/

Reply via email to