I'm creating a URL

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I'm creating a URL to paste into a html page that the user can click
on.  Does anyone know of any programs that will automatically convert
spaces and other special characters into url compatible code.  I think
space is %20

i.e. I need to be able to type in
'http://mysite.com/prog.pl?stuff&description=properties that fit this

so the spaces after the description would need to be converted.


Re: I'm creating a URL

socialism001@yahoo.com wrote in news:1118281637.466346.313280

Quoted text here. Click to load it

Didn't you find something suitable when you searched/browsed through CPAN?

(reverse each component and remove .invalid for email address)

comp.lang.perl.misc guidelines on the WWW:

Re: I'm creating a URL

On 2005-06-09, socialism001@yahoo.com scribbled these
curious markings:
Quoted text here. Click to load it

This is in the FAQ (which I actually didn't know until a short while
ago, as it was posted to the group). perlfaq9 has your answer. If you
have access to a system with a command-line and a proper perl
installation (instead of the butchered installations which certain
unnamed Linux distributions use by default), you should be able to
obtain the answer by doing:

perldoc -q '%-'

Change the '' as appropriate for your shell's quoting rules.

Best Regards,
Christopher Nehren
I abhor a system designed for the "user", if that word is a coded
pejorative meaning "stupid and unsophisticated". -- Ken Thompson
If you ask the wrong people questions, you get "Joel on Software".
Unix is user friendly. However, it isn't idiot friendly.

Site Timeline