php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #52478 parse_str should accept string encoding as a parameter
Submitted: 2010-07-29 01:06 UTC Modified: 2010-08-07 01:26 UTC
From: lgandras at gmail dot com Assigned:
Status: Not a bug Package: *URL Functions
PHP Version: 5.2.14 OS: NA
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: lgandras at gmail dot com
New email:
PHP Version: OS:

 

 [2010-07-29 01:06 UTC] lgandras at gmail dot com
Description:
------------
It would be nice to have parse_str($str, $arrout) accepting a third parameter allowing to specify string encoding. Typically javascript encoded strings will be in UTF-8. My server for example uses ISO-8859-1 for everything.

I'm willing to try to develop a patch for this (never done it before). It would be nice if somebody pointed out what internal functions should i use to get this working.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-08-07 01:26 UTC] johannes@php.net
-Status: Open +Status: Bogus
 [2010-08-07 01:26 UTC] johannes@php.net
PHP has no understanding of encodings therefore there is no reason for such a parameter there.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 18:01:28 2024 UTC