2

I'm trying to create products via the REST API but in the body of the request I send accented characters (á, é, ñ, etc) and I get a decoding error as a response, I have configured postman to send the request with UTF-8 encoding, but I still get that error, apache is also set with UTF-8 encoding as well. Thanks in advance for any help.

1 Answer 1

0

I have the same issue. Workaround is to decode product names before sending to Rest API:

var product_name_encoded = product_name.replace(/[\u00A0-\u9999<>\&]/g, function(i) {
  return '&#'+i.charCodeAt(0)+';';
});

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.