Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Perl Misc (http://www.velocityreviews.com/forums/f67-perl-misc.html)
-   -   uencode decode url string (http://www.velocityreviews.com/forums/t893045-uencode-decode-url-string.html)

Xah Lee 06-27-2005 10:09 AM

uencode decode url string
 
is there a perl module that turns encoded url to plain chars? e.g.
'%20' to space.

thanks.

Xah
xah@xahlee.org
http://xahlee.org/


Gunnar Hjalmarsson 06-27-2005 10:33 AM

Re: uencode decode url string
 
Xah Lee wrote:
> is there a perl module that turns encoded url to plain chars? e.g.
> '%20' to space.


URI::Escape

Or, if there are just a few of them:

s/%(..)/chr hex $1/eg;

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl


All times are GMT. The time now is 01:20 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.