kovidgoyal / html5-parser

Fast C based HTML 5 parsing for python
Apache License 2.0
678 stars 33 forks source link

as-libxml.c: Set encoding of xmlDoc to UTF-8 #12

Closed Balletie closed 6 years ago

Balletie commented 6 years ago

Some parts of libxml2 check the encoding of an xmlDoc to decide how to serialize an element (see e.g. 1).

See also PR #11, which was not a good solution since it assumes all input to be HTML.

Balletie commented 6 years ago

Odd that the travis build is exiting with exit code 245...

Balletie commented 6 years ago

Thank you for your help!