Encoding not detected, EncodingChangeException

Frank Langelage <[email protected]>
Newsgroups gmane.comp.parsers.htmlparser.user
Message-ID <0661271AAE12AF45B2E6D1C93DA468D109DBE69800@srv-mailmb01.ho.wan.2020.net>
Hello,

parsing the page http://www.nbp.pl/Kursy/KursyA.html leads to an EncodingChangeException.
The htmlparser uses the default encoding ISO-8859-1 and does not recognize the charset UTF-8 given in the head of this html-page.
Setting the encoding to UTF-8 using Parser.setEncoding() works, but shouldn't this work without?

Regards

Frank Langelage

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects

_______________________________________________
Htmlparser-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/htmlparser-user
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.