How to encode an URL?

They have: 60 posts

Joined: Aug 2000

A newbie question!
If the user type in: http://www.domain.com/~page/subpage.htm.....
How do you encode the string into URL-encoding format? (with hex values)
Thanks a lot

http://new.123finder.com/ - Helps you find cool domains for FREE & Registers it for only $14.95/yr
http://www.ad-rotator.com/ - Free ad rotating system for small websites - Stop Ctrl-P/Ctrl-C the ad code!

------
Son

Ken Elliott's picture

They have: 358 posts

Joined: Jun 1999

Ah um...you lost me. If you want an answer on this question please keep it in laymans. Helps us semi-literate.

Vulken
The Burger King

They have: 60 posts

Joined: Aug 2000

Sorry!
I found some ways to do this, share them with you:
CGI::EnURL
URI::Escape

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.