I call an API and I get the following response:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<Response Status="OK">
</Response>
This simple response tells me a particular service is up and running. However, powershell tells me:
invoke-restmethod : '"utf-8"' is not a supported encoding name.
When I save the xml code above to a file and call get-content on it, it works.
What gives?
Searching on this doesn't really help me, I find several sites with similar things but since get-content works, I don't believe its not supported I think something else is wrong.
If this really isn't going to work with invoke-restmethod, can I save the raw output from the API request and call get-content on the file? I tried something with out-file but it gives me the same complaints, utf-8 not supported.
Thanks for the help.