in reply to Re^2: Getting error while decoding JSON object via POST method
in thread Getting error while decoding JSON object via POST method
http://search.cpan.org/dist/HTML-Parser/lib/HTML/Entities.pm
decode_entities( $string, ... )
This routine replaces HTML entities found in the $string with the corresponding Unicode character. Unrecognized entities are left alone.
Im not sure this would work on "chunks", $orig has to be the entire string to decode at once for with chunks an entity could be split across them.use HTML::Entities qw/decode_entities/; my $ok=decode_entities($orig);
|
|---|