I don't see any way of specifying the encoding of an HTML document, which is weird because XML::LibXML supposedly handles HTML.
The docs of XML::LibXML::Parser says under the heading PARSER OPTIONS that there's a parser option encoding which sets the “character encoding of the input” for HTML.
In reply to Re^3: HTML parsing module handles known and unknown encoding
by ambrus
in thread HTML parsing module handles known and unknown encoding
by ambrus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |