Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to use urlencode.decode to decode '+' to space #20

Open
puXiaoyi opened this issue May 30, 2019 · 1 comment
Open

how to use urlencode.decode to decode '+' to space #20

puXiaoyi opened this issue May 30, 2019 · 1 comment

Comments

@puXiaoyi
Copy link

const urlencode = require('urlencode');
const test = '2019-05-30+14%3A39%3A26';
console.log(urlencode.decode(test));
// result '2019-05-30+14:39:26'
// expect '2019-05-30+14:39:26'

how to use urlencode.decode to decode '+' to space?

@D50000
Copy link

D50000 commented Aug 13, 2020

Actually this is not urlencode. It a raw url encode method. So all the space will convert to %20 not + .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants