I am trying to fetch a json document that has utf-16 accented vowels and convert it to utf-8 on the output file. I have a command line in the format:
curl "url" -H "X-API-Key: key-goes-here" -o outfile.json
I can't figure out where to add something like ' .encode(utf-8)' on the command line in order to convert to utf-8. Some say this kind of command line could solve the problem:
curl URL | iconv -f iso8859-1 -t utf-8 > output.xml
But stash curl does not accept iconv , -f, or -t arguments. Is there a way to make this work in stash?