uencode decode url string

Discussion in 'Perl Misc' started by Xah Lee, Jun 27, 2005.

  1. Xah Lee

    Xah Lee Guest

    is there a perl module that turns encoded url to plain chars? e.g.
    '%20' to space.

    thanks.

    Xah

    ∑ http://xahlee.org/
     
    Xah Lee, Jun 27, 2005
    #1
    1. Advertising

  2. Xah Lee wrote:
    > is there a perl module that turns encoded url to plain chars? e.g.
    > '%20' to space.


    URI::Escape

    Or, if there are just a few of them:

    s/%(..)/chr hex $1/eg;

    --
    Gunnar Hjalmarsson
    Email: http://www.gunnar.cc/cgi-bin/contact.pl
     
    Gunnar Hjalmarsson, Jun 27, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ramprasad A Padmanabhan

    function to url decode a string

    Ramprasad A Padmanabhan, Jul 23, 2003, in forum: C Programming
    Replies:
    11
    Views:
    797
    Michael B Allen
    Jul 27, 2003
  2. Snedker

    Decode URL string

    Snedker, Sep 1, 2008, in forum: ASP .Net
    Replies:
    9
    Views:
    1,313
    Florian Paulus
    Sep 2, 2008
  3. Dotan Cohen
    Replies:
    0
    Views:
    104
    Dotan Cohen
    Jun 13, 2013
  4. Robert Kern
    Replies:
    0
    Views:
    111
    Robert Kern
    Jun 13, 2013
  5. Dotan Cohen
    Replies:
    0
    Views:
    96
    Dotan Cohen
    Jun 13, 2013
Loading...

Share This Page