RE: [PHP] urlencode vs rawurlencode

From: Date: Fri, 26 Jul 2002 05:12:00 +0000
Subject: RE: [PHP] urlencode vs rawurlencode
Groups: php.general 
Request: Send a blank email to php-general+get-109673@lists.php.net to get a copy of this message
I think + for space is specified in some rfc somewhere - don't know which one, and I don't know if that rfc has been superceded. -----Original Message----- From: Bob Lockie [mailto:bjlockie@lockie.ca] Sent: Friday, July 26, 2002 3:05 PM To: Martin Towell; php-general Subject: RE: [PHP] urlencode vs rawurlencode On Fri, 26 Jul 2002 14:00:30 +1000, Martin Towell wrote: >well, doing this: > ><? >echo urlencode(" +&") . "\n"; >echo rawurlencode(" +&") . "\n"; >?> > >I get this: > >+%2B%26 >%20%2B%26 > >so it looks like, if it encodes a char, then rawurlencode() will always >bring it back to the hex value for it, whereas urlencode() will use "+" for >space (dunno about other chars) I've never seen a + for a space. What uses it that way? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#109673) next »