I am sending some parameters in query string by converting them in base64 using method btoa(). I just want to know, do I still need to wrap the result into the encodeURI method to pass on the correct information to the server in URL.
For example:
- http://example.com/{name}- For this, which one is correct from below?
- "http://example.com/" + btoa("some-name")
- "http://example.com/" + encodeURI(btoa("some-name"))
 
    