RE: URI escaping question

2002-11-15 Thread Narins, Josh
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

Re: URI escaping question

2002-11-14 Thread Kyle Oppenheim
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

Re: URI escaping question

2002-11-14 Thread Kyle Oppenheim
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: