I´m doing a PUT from Invoke-RestMethod
and the endpoint doesn't like my swedish charcters åäö.
I have verified from downloaded curl on my Windows CMD window, and got the same results error 400. The strange thing is that it works from PostMan on my machine.
Could it have something to do with utf8 and BOM? tried tried to remove it from my string but it didn´t helped.
Not working:
{ "User": {
"email": "xxxxx@domain.com",
"last_name": "Åkesson",
"first_name": "Thomas",
"enabled": true
}
}
Working:
{
"User": {
"email": "xxxxx@domain.com",
"last_name": "akesson",
"first_name": "Thomas",
"enabled": true
}
}
Issue seems for me related to Changing PowerShell's default output encoding to UTF-8? Or could the endpoint itself have some bugs?