Open logone72 opened 1 year ago
My app is currently using web view with creating and parsing query string with qs.
qs.parse(location.search.replace('?', ''), { decoder: decodeURIComponent });
Like above, I'm passing decodeURIComponent as decoder for qs.parse()
decodeURIComponent
decoder
qs.parse()
The problem is, on IOS web view environment, it returns un-decoded string(the result of encodeURIComponent).
encodeURIComponent
is there some underlying conditions on decoder option?
it works fine on pc browser, and android browser.
decodeURIComponent is not a valid decoder function when used directly; you have to wrap it in a valid one.
My app is currently using web view with creating and parsing query string with qs.
Like above, I'm passing
decodeURIComponent
asdecoder
forqs.parse()
The problem is, on IOS web view environment, it returns un-decoded string(the result of
encodeURIComponent
).is there some underlying conditions on
decoder
option?it works fine on pc browser, and android browser.