cormanaz has asked for the wisdom of the Perl Monks concerning the following question:
Same fail with URI::Encodeuse strict; use feature ':5.10'; use URI::Escape qw( uri_unescape ); my $string = 'China's eceonomic expansion continues.'; say uri_unescape($string);
LoL NVM...probably because it's not URI escaped! Here is the correct way to do it:
use strict; use feature ':5.10'; use XML::Entities; my $string = 'China's eceonomic expansion continues.'; say XML::Entities::decode('all', $string);
|
|---|