in reply to Need advice on HTML entities

You could use
HTML::Entities::decode_entities_old($string)
thats the old perl fallback. Or make your string utf8 before you pass it to decode_entities.
my $string = "’"; chop ( $string .= chr(0x1234)); print "string: $string\n"; # &rsquo decode_entities($string);
and since we like to print a utf8 char put STDOUT into utf8 mode too.
# at the top of the program binmode STDOUT, ":utf8";
UPDATE: or even better update HTML::Parser and it works out of the box. Tested with 3.43.
Boris

Replies are listed 'Best First'.
Re^2: Need advice on HTML entities
by wfsp (Abbot) on Feb 08, 2005 at 20:12 UTC
    ...update HTML::Parser...

    That did it! Many thanks,
    John