In a class named XMLHTMLParser, you may expect that logic to be expanded a bit beyond the basic XML spec though. But since there are multiple potentially correct definitions, there will always be failure cases. Not to mention, in addition to XML/HTTP, HTML4/5 also define (different) meta tags for specifying encoding (+ have different default encodings), so really, the number of potentially correct encodings is even higher.
-- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html