I want to url encode a string in javascript:
but these 2 function calls give the same result:
encodeURI('g0sceq3EkiAQTvyaZ07C+C4SZQz9FaGTV4Zwq4HkAnc=') === decodeURI('g0sceq3EkiAQTvyaZ07C+C4SZQz9FaGTV4Zwq4HkAnc='); // true
both return g0sceq3EkiAQTvyaZ07C+C4SZQz9FaGTV4Zwq4HkAnc=
.
Should the +
sign and =
sign not be encoded?
I thought =
would be %3D
and +
would be %2B
?