ID: 36641 Updated by: [EMAIL PROTECTED] Reported By: sreinecke at feverxl dot de -Status: Open +Status: Bogus Bug Type: Documentation problem Operating System: all PHP Version: Irrelevant New Comment:
urlencode() encodes space as +, RFC 1738 as %20. Previous Comments: ------------------------------------------------------------------------ [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