I asked this on https://answers.microsoft.com/en-us/msoffice/forum/all/how-to-read-utf8-data-output-from-curl-in/30f111f3-7f81-469e-824c-926fdbbed7d9?messageId=546fe3b8-09f7-4846-862e-0c7bf51d1e68 and it was suggested that I ask here.
I use cURL to access the Microsoft Translate API in MacOS VBA. I pass in JSON , I get back the result with accented characters just fine IF I output to a file by adding -o "file.txt". So cURL is working correctly.
But If I use a pipe using the usual popen / fread / pclose I get mojibake returned in the data. A ü becomes two characters (square-root, degree)
Is there a way of returning the utf-8 output through a pipe unmangled?