passing "%20" in a url to Perl via CGI

Phillip Mills pmills-Zd07PnzKK1IAvxtiuMwx3w at public.gmane.org
Fri Aug 6 12:59:41 UTC 2004


On Aug 6, 2004, at 8:44 AM, Madison Kelly wrote:

> Also, would one of these modules help ensure that other special 
> characters and possibly unicode characters in file names where 
> properly handled, too? Thanks!

I'm not sure of all the fine print, but try 'perldoc URI::Escape'.

Example:
use URI::Escape;
my $escaped = uri_escape("file with embedded %20");
print "$escaped\n";

........................
Phillip Mills
Multi-platform software development
(416) 224-0714

--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list