my $dom = $parser->parse_html_string($htmlfromlwp, { encoding => 'iso8859-1' } );