use URI::Escape; my $uri = '%C3%A9nfasis'; my $octets = uri_unescape($uri);