urlencode icon indicating copy to clipboard operation
urlencode copied to clipboard

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

Open puXiaoyi opened this issue 6 years ago • 1 comments

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?

puXiaoyi avatar May 30 '19 08:05 puXiaoyi

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

D50000 avatar Aug 13 '20 01:08 D50000