【发布时间】:2018-10-28 15:40:58
【问题描述】:
我的 powershell 脚本中有这段代码,但它在特殊字符部分上表现不佳。
$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"
在我的输出文件中,我只得到 '????'对于任何特殊字符。有谁知道如何让它在我的输出文件中显示特殊字符?
【问题讨论】:
标签: powershell character-encoding invoke-webrequest