Thread URI encoden (2 answers)
Opened by esskar at 2004-01-28 11:35

esskar
 2004-01-28 11:50
#1102 #1102
User since
2003-08-04
7321 Artikel
ModeratorIn

user image
Code: (dl )
1
2
3
4
5
6
sub url_encode {
my $text = shift;
$text =~ s/([^a-z0-9_.!~*'( ) -])/sprintf "%%%02X", ord($1)/ei;
$text =~ tr/ /+/;
return $text;
}


:)

View full thread URI encoden