The return I am looking for, looks like this in the API sandbox (Browser driven):
{
"reviewId": "2887600825207199304",
"rating": 5,
"comments": "Abe Froeman provided a “seamless†gutter experience. Abe managed the scheduling, and Ferris and Cameron, with 15-30+ years of experienced, executed the job beautifully. Extremely diligent workers. Looks very attractive. Would highly recommend for future jobs.",
"title": null,
...
..
.
But in the back end, when I issue the curl statement:
zak $ curl -d "$(cat input.json)" \
> -H "Content-Type: application/json" \
> -H "Accept: application/json" \
> -X POST "https://api/xx.com/v1/xxx?sindex=0&count=30&api_key=..."
My return looks like
{
"reviewId": "2887600825207199304",
"rating": 5,
"comments": "Abe Froeman provided a “seamlessâ€zak $ <-- Broken
All my research ends up in questions about encoding the URL .. Not dealing with the response -- IE THIS QUESTION
Problem: Non UTF ( I think! ) character from API breaking cURL response
Attempts: Have been fruitless, I've tried many different flags from man curl
-- none seem to help
Question: How do I get cURL to ignore the erroneous characters returned from an API?