Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

doc: add explanations for querystring #9259

Closed
wants to merge 2 commits into from

Conversation

robertkowalski
Copy link

  • add an article: decode a non-utf8 string
  • explain default behaviour of querystring.unescape
  • add a note that the baviour can change if other folks on your
    team have overridden it

related to #9207

it can be used to decode `non-utf8` encoding string if necessary.
it can be used to decode a `non-utf8` encoding string if necessary.

`querystring.unescape` will try to use `decodeURIComponent` in the

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would not duplicate the description of querystring.unescape here, otherwise we'll have to update it twice every time it changes.

@misterdjules
Copy link

Could you please rebase your branch on top of #9207, but still preserve @h7lin's commit so that we can take a look at both changes at once?

h7lin and others added 2 commits February 21, 2015 02:09
 - add an article: `decode a non-utf8 string`
 - explain default behaviour of `querystring.unescape`
 - add a note that the baviour can change if other folks on your
   team have overridden it

related to nodejs#9207

Conflicts:
	doc/api/querystring.markdown
@robertkowalski
Copy link
Author

@misterdjules done!

@misterdjules
Copy link

LGTM. Thank you @robertkowalski and @h7lin!

misterdjules pushed a commit to misterdjules/node that referenced this pull request Feb 25, 2015
In the documentation for querystring.parse, the documentation mentions
that the default value for options.decodeURIComponent is the
decodeURIComponent function, but it's actually the querystring.unescape
function.

PR-URL: nodejs#9259
Reviewed-by: Julien Gilli <julien.gilli@joyent.com>
misterdjules pushed a commit to misterdjules/node that referenced this pull request Feb 25, 2015
 - add an article: `decode a non-utf8 string`
 - explain default and fallback behaviour of `querystring.unescape`

PR-URL: nodejs#9259
Reviewed-by: Julien Gilli <julien.gilli@joyent.com>
@misterdjules
Copy link

@robertkowalski @h7lin Thank you! Landed in f1bf883 and 5d821fe.

@misterdjules misterdjules added this to the 0.12.1 milestone Feb 25, 2015
@robertkowalski robertkowalski deleted the doc-querystring branch February 25, 2015 23:49
cjihrig pushed a commit to nodejs/node that referenced this pull request Mar 3, 2015
In the documentation for querystring.parse, the documentation mentions
that the default value for options.decodeURIComponent is the
decodeURIComponent function, but it's actually the querystring.unescape
function.

PR-URL: nodejs/node-v0.x-archive#9259
Reviewed-by: Julien Gilli <julien.gilli@joyent.com>
robertkowalski added a commit to nodejs/node that referenced this pull request Mar 3, 2015
 - add an article: `decode a non-utf8 string`
 - explain default and fallback behaviour of `querystring.unescape`

PR-URL: nodejs/node-v0.x-archive#9259
Reviewed-by: Julien Gilli <julien.gilli@joyent.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants