Hi experts,
I am making a HTTP API call from javascript. The API takes a JSON object as the request body. So I am using the following script for creating the JSON object for request
var eml = "abc.com";
var fst = "abc";
var lst = "com";
var obj = {email: eml, first_name: fst, last_name: lst};
httpRequest.body = JSON.stringify(obj);
When I make this call the API responds correctly.
But if the variables : eml , fst , lst has double byte characters like Japanese, Chinese, Korean characters, then the same API call is failing with a error "Request Body should be a valid JSON object."
If I call the API from Postman, with the double byte character set up, then API works.
Any idea why it is failing from Adobe campaign javascript?