I am trying to use the Invoke-Restmethod to call a set of API's, but i have a problem with output encoding. What it could be
$PSDefaultParameterValues['*:Encoding'] = 'utf8'
$Header = @{"Authorization" = "Token token_value"}
$uri = "https://some_api_url"
$team = Invoke-RestMethod -Method GET -Uri $uri -Headers $Header -ContentType "text/*; charset=utf8"
$team.last_name
Results:
PS Version:
website config: