on Wed, 10 Jul 2002 22:21:55 GMT, Connie Chan wrote:
> With get method from form, we always see that the
> $ENV{QUERY_STRING} like this :
> &message=%20%2F%15+...&.......
>
> btw, what is the name of that string in types of ? Escape ? Unicode ?
>
> With simple tr/// and s///, I can get back what exact the input
> is, but, how can I make a the input back to the.... above format ?
> Totally have no idea...
Yet another reason to use CGI.pm.
But this also works:
#! perl -w
use strict;
use URI::Escape;
my $string="&message=%20%2F%15+...&.......";
print uri_unescape($string);
--
felix
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]