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
\-_.!~*\'()'; 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

URI escaping question

2002-11-14 Thread Ray Zimmerman
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

URI escaping question

2002-11-14 Thread Ray Zimmerman
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] /