|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
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.guideclick.com/ - Qualified webmaster resources (affiliate programs, web design, tips) ------ Son |
|
#2
|
|||
|
|||
|
HTML::Entities::encode_entities($url);
|
|
#3
|
|||
|
|||
|
Yeah, I found quite a lot of ways doing that!
Thanks anyway. Some are: CGI::EnURL URI::Escape & write your own subs oh, and what Chris told me ![]() ------------------ http://new.123finder.com/ - Helps you find cool domains for FREE & Registers it for only $14.95/yr http://www.guideclick.com/ - Qualified webmaster resources (affiliate programs, web design, tips) ------ Son |
|
#4
|
|||
|
|||
|
Actually, what I told you was wrong. :-) HTML::Entities is used to encode things like < to < My mistake, sorry. You do want to be using URI::Escape::uri_escape or the equivalent (better to use that than to roll your own in the ever-changing world of web standards).
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > How to encode URL? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|