The following URL works as expected and returns "null".
https://zga2tn1wgd.execute-api.us-east-1.amazonaws.com/mycall?url=https://mr.wikipedia.org/s/4jp4
But the same page, with unicode string instead of ascii string, throws an error:
"errorMessage": "'ascii' codec can't encode characters in position 10-20: ordinal not in range(128)", "errorType": "UnicodeEncodeError"
How do I encode the unicode characters while passing the string to API gateway?
I am using following bookmarklet to generate the URL mentioned above...
javascript:(function(){location.href='https://z3nt6lcj40.execute-api.us-east-1.amazonaws.com/mycall?url='+encodeURIComponent(location.href);})();