vchrisb / Isilon-POSH

EMC Isilon Platform API implementation in PowerShell
MIT License
25 stars 13 forks source link

Parse as UTF-8 before sending and after receiving #17

Closed kbakk closed 2 years ago

kbakk commented 7 years ago

This addresses #16.

The change uses/returns UTF-8 when using Invoke-WebRequest, both for the body being sent (PUT or POST methods) and for the content received from the server.

As the Isilon API don't return character encoding in it's headers (but seems to be using UTF-8), the response is interpreted as something else (ISO-8859-1? Or perhaps set by the system invoking). See article.