in reply to Better Algorithm to Encode This?
# Gleefully ripped from the CGI.pm escape method. $STRING =~ s/([^a-zA-Z0-9_.-])/lc sprintf(".%02x", ord($1))/eg; # Originally #$toencode =~ s/([^a-zA-Z0-9_.-])/uc sprintf("%%%02x", ord($1))/eg;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Better Algorithm to Encode This?
by extremely (Priest) on Jun 13, 2001 at 05:54 UTC |