Heads Up :
The post you are writing will appear in a public forum. Please ensure all content is appropriate for public consumption. Review the employee guidelines for the community here.
after updating all the organization name with PowerShell and the API I noticed a formatting error.Special Characters like øæå are replaced with squares.Does anyone know what kind of little parameter i need to add in my code to make it support our nor...
it was probably just that one-liner.i tested with a bunch of different header parameters and running powershell in different charsets.glad you pointed me to the solution though!I believe it converts the data to bytes, and just sends the bytes, ignori...
found a solution based on your reply.$header = @{
"X-Cisco-Meraki-API-Key" = $apikey
"Content-Type" = 'application/json ; charset=utf-16'
}
$customuri = $org.samlConsumerUrl.Split('/')[2].split('.')[0]
$updateuri ...
i appreciate your responses. i tried them in both vscode(with all types of encoding) and in ISE.i also tried this $change = Invoke-RestMethod -Method Put -Uri $updateuri -Body $json -Headers $header -ContentType "text/plain; charset=utf-8"...
thanks for your input.this is my current header:$header = @{
'X-Cisco-Meraki-API-Key' = $apikey
'Content-Type' = 'application/json ; charset=utf-8'
'Accept-Language' = 'nb-NO,nb;q=0.9,no-NO;q=0.8,no;q=0.6,nn-NO;q=0.5,nn;q=0.4,en-US;q=0.3,...