HTML::Encoding helps to determine the encoding of HTML and XML/XHTML documents. WWW: https://metacpan.org/release/HTML-Encoding