I have this code in my powershell script and it doesn't do well on the special characters parts.
$request = 'http://151.80.109.18:8082/vrageremote/v1/session/players'
$a = Invoke-WebRequest -ContentType "application/json; charset=utf-8" $request |
ConvertFrom-Json |
Select -expand Data |
Select -expand players |
Select displayName, factionTag | Out-file "$scriptPath\getFactionTag.txt"
In my output file I only get '????' for any special characters. Does anyone know how I can get it to show special characters in my output file?