#22870 [Opn->Bgs]: URL encode option to encode spaces as %20 instead of +
| From: | moriyoshi@php.net | Date: | Tue, 25 Mar 2003 10:18:28 +0000 |
| Subject: | #22870 [Opn->Bgs]: URL encode option to encode spaces as %20 instead of + | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-36377@lists.php.net to get a copy of this message | ||
ID: 22870
Updated by: moriyoshi@php.net
Reported By: belial at redbrick dot dcu dot ie
-Status: Open
+Status: Bogus
-Bug Type: URL related
+Bug Type: Feature/Change Request
Operating System: Linux 2.2 Kernel
PHP Version: 4.3.0
New Comment:
Use rawurlencode()
Previous Comments:
------------------------------------------------------------------------
[2003-03-25 04:15:23] belial at redbrick dot dcu dot ie
The urlencode function from the manual does "Returns a string in which
all non-alphanumeric characters except -_. have been replaced with a
percent (%) sign followed by two hex digits and spaces encoded as plus
(+) signs."
When working on a local file system converting spaces in filenames to
%20 for passing to separate programs is favourable to the conversion to
a plus sign. Either a change of functionality to convert spaces to %20
instead of +, or an option to specify the behaviour would be nice.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=22870&edit=1