When I retrieve the list of devices, the character encoding is incorrect.
The character "é" becomes "é"
I tried adding "charset=utf-8" and other encodings in the header but it does not work.
$Header2 = @{
'Content-Type' = 'application/json; charset=utf-8'
"Authorization" = "Bearer $sToken"
}
((Invoke-WebRequest -Headers $Header2 -Uri "https://api.connect.withsecure.com/devices/v1/devices?organizationId=$($Org)" -UseBasicParsing).content | ConvertFrom-Json).Items