#36641 [NEW]: space encoding in urlencode / rawurlencode
| From: | sreinecke at feverxl dot de | Date: | Tue, 07 Mar 2006 08:18:53 +0000 |
| Subject: | #36641 [NEW]: space encoding in urlencode / rawurlencode | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969372280@lists.php.net to get a copy of this message | ||
From: sreinecke at feverxl dot de
Operating system: all
PHP version: Irrelevant
PHP Bug Type: Documentation problem
Bug description: space encoding in urlencode / rawurlencode
Description:
------------
urlencode documentation:
Returns a string in which all non-alphanumeric characters except -_. have
been replaced with a percent (%) sign followed by two hex digits
--> AND SPACES ENCODES AS PLUS (+) SIGNS <--.
It is encoded the same way that the posted data from a WWW form is
encoded, that is the same way as in application/x-www-form-urlencoded
media type. This DIFFERS from the RFC1738 encoding (see rawurlencode()) in
that for historical reasons,
--> SPACES ARE ENCODED AS PLUS (+) SIGNS. <--
...
Where is the difference?
Thank you,
Steffen
Reproduce code:
---------------
http://www.php.net/manual/en/function.urlencode.php
Expected result:
----------------
irrelevant
Actual result:
--------------
see description
--
Edit bug report at http://bugs.php.net/?id=36641&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36641&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36641&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36641&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=36641&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=36641&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=36641&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=36641&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=36641&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=36641&r=support
Expected behavior: http://bugs.php.net/fix.php?id=36641&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=36641&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=36641&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=36641&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36641&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=36641&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=36641&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=36641&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=36641&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=36641&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=36641&r=mysqlcfg