rly unescapes Unicode,
it doesn't escape it (for me, with 5.6.1)
Neils Poppe recently suggested this on perl-xml for UTF-8
sub escape {
join '', map {
chr($_) =~ /([a-zA-Z0-9_.-])/o? $1 : sprintf "%%%02X", $_
} unpack 'C*', shift
}
-Original Me
gt;
To: "modperl List" <[EMAIL PROTECTED]>
Sent: Thursday, November 14, 2002 4:10 PM
Subject: Re: URI escaping question
> According to RFC 2396 (http://www.ietf.org/rfc/rfc2396.txt) the reserved
> characters in the query component of a URI are ";", "/&quo
\-_.!~*\'()';
uri_escape($_[0], $character_class);
}
- Kyle
- Original Message -----
From: "Ray Zimmerman" <[EMAIL PROTECTED]>
To: "modperl List" <[EMAIL PROTECTED]>
Cc: "Raj Chandran" <[EMAIL PROTECTED]>
Sent: Thursday, Novem
Oops ... finger slipped before I was done typing ...
Suppose I have a hash of string values that I want to include in the
query string of a redirect URL. What is the accepted way of escaping
the values to be sure that they come through intact?
Specifically, it seems that Apache::Util->escape_ur
Suppose I have a hash of string values that I want to include in the
query string of a redirect URL. What is the accepted way of escaping
the values to be sure that they come through intact?
Specifically, it seems that Apache::Util->escape_uri()
--
Ray Zimmerman / e-mail: [EMAIL PROTECTED] /