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
According to RFC 2396 (http://www.ietf.org/rfc/rfc2396.txt) the reserved
characters in the query component of a URI are ";", "/", "?", ":", "@","&",
"=", "+", ",", and "$".
Apache::Util->escape_uri() does not escape ":", "@", "&", "=", "+", ",", or
"$".
Something like the following should work: