ID: 36641 User updated by: sreinecke at feverxl dot de Reported By: sreinecke at feverxl dot de -Status: Bogus +Status: Open Bug Type: Documentation problem Operating System: all PHP Version: Irrelevant New Comment:
Yes, thats true. But the manual says wrongly that spaces are encoded as (+) signs in RFC1738. see: http://www.php.net/manual/en/function.urlencode.php Previous Comments: ------------------------------------------------------------------------ [2006-03-07 09:35:09] [EMAIL PROTECTED] urlencode() encodes space as +, RFC 1738 as %20. ------------------------------------------------------------------------ [2006-03-07 09:18:52] sreinecke at feverxl dot de 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 this bug report at http://bugs.php.net/?id=36641&edit=1