我正在尝试从 Json 转换 Powershell 变量,我得到问号而不是希伯来语。
据我所知,ConvertFrom-Json 没有编码参数,有什么想法可以通过希伯来语吗?
看看这个词:מחילמ
PS D:\wa2> $BotUpdates
StatusCode : 200
StatusDescription : OK
Content : {"succes":true,"response":[{"key":{"remoteJid":"","fromMe":false,"id":"","participant":""},"message":{"conversation":"***מחילמ***"},...
RawContent : HTTP/1.1 200 OK
Connection: keep-alive
Keep-Alive: timeout=5
Content-Length: 308
Content-Type: application/json; charset=utf-8
Date: Thu, 24 Dec 2020 13:35:35 GMT
ETag: W/"134-v3U3d/6PCvlXMASgH7...
Forms : {}
Headers : {[Connection, keep-alive], [Keep-Alive, timeout=5], [Content-Length, 308], [Content-Type, application/json; charset=utf-8]...}
Images : {}
InputFields : {}
Links : {}
ParsedHtml : mshtml.HTMLDocumentClass
RawContentLength : 308
从 Json 转换后
PS D:\wa2> ($BotUpdates | ConvertFrom-Json).response
key message messageTimestamp participant
--- ------- ---------------- -----------
@{remoteJid=18XXXXXX; fromMe=False; id=3AXXXXXX67A1; participant=9} @{conversation=??????????} 1608816932
PS D:\wa2>
看看@{conversation=????????????}
有任何想法吗?