Hello,

when parsing a HTML page with HTML::TreeBuilder, HTML entities in the
content are encoded (i.e. a literal german a-umlaut becomes ä).

This works for me, if the character encoding of the page is iso-8859-1,
but not if it is utf-8. In this case, the characters are encoded, as if
the page were iso-8859-1 (when I look at the page on my browser, forcing
the encoding to be iso-8859-1, I see the same output).

Is there a way to tell HTML::Entities the input encoding to use?

The only remaining possibility I see to deal with this problem, is to
translate the input to iso-8859-1 before parsing it or to turn encoding
off completely. This seems pretty awkward to me.

Greetings

Neven




 

Reply via email to