- From: litbear <notifications@github.com>
- Date: Tue, 20 Oct 2020 00:23:36 -0700
- To: whatwg/url <url@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 20 October 2020 07:23:48 UTC
>
>
> I'm not sure what you mean?
>
> ```js
> x = new URLSearchParams("test+test=x+x");
> console.log(x.get("test test")) // "x x"
> ```
Yes! `decodeURIComponent` don't replement `+`.
I my option, It's just like:
`decodeURIComponent()` = replace `+` | percent decode | UTF-8 decode,
`URLSearchParams.prototype.toString()` = percent decode | UTF-8 decode
Is there a scenario we prefer `encode/decodeURIComponent` than `URLSearchParams`?
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/issues/556#issuecomment-712650576
Received on Tuesday, 20 October 2020 07:23:48 UTC