Re: First draft of work published which removes the dependency on HTML::Parser from HTTP::Message

Gisle Aas <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.lwp
Message-ID <[email protected]>
http://dev.w3.org/html5/spec/Overview.html#determining-the-character-encoding
specifies how to pre-scan an HTML document to sniff the charset.
Would it not be simpler to just implement the algorithm as specified
instead of using a generic parser.  The use of HTML::Parser to
implement this sniffing was just me trying a shortcut since
HTML::Parser seemed to implement a superset of these rules.

--Gisle
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.