I'm calling an API from an API provider that requires UTF-8 encoding of parameters.
I have used the js encodeURI and encodeURIComponent for that particular parameter. It does not work. Pls is there another way to do this?
This call is made via JavaScript that sends the UTF-8 encoded parameter value to a PHP script that requests from the API.