Subject: | opaque and percent character |
Hello,
How can I get back the opaque part of an URI that contains percent
character to its original value after doing the necessary unescaping ?
Here is the use case:
% perl -MURI -MURI::Escape -e 'print
uri_unescape(URI->new(shift)->opaque) . "\n";' 'file:a%20b'
a b
From the case, my suspect is $URI::uric, indeed:
% perl -MURI -MURI::Escape -e '$URI::uric = quotemeta($URI::reserved) .
$URI::unreserved; print uri_unescape(URI->new(shift)->opaque) . "\n";'
'file:a%20b'
a%20b
Thanks for your help,
Apologizes if this is a dumb question -;
Cheers, Jean-Damien.