php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #22870 URL encode option to encode spaces as %20 instead of +
Submitted: 2003-03-25 04:15 UTC Modified: 2003-03-25 04:18 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: belial at redbrick dot dcu dot ie Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: 4.3.0 OS: Linux 2.2 Kernel
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: belial at redbrick dot dcu dot ie
New email:
PHP Version: OS:

 

 [2003-03-25 04:15 UTC] 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-03-25 04:18 UTC] moriyoshi@php.net
Use rawurlencode()

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Aug 16 12:00:02 2025 UTC