#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Posts
    73
    Rep Power
    14
    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. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Posts
    81
    Rep Power
    14
    HTML::Entities::encode_entities($url);
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Posts
    73
    Rep Power
    14
    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
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Posts
    81
    Rep Power
    14
    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).

IMN logo majestic logo threadwatch logo seochat tools logo