Powershell ConvertFrom Json希伯来语-->问号



我正在尝试从Json转换Powershell变量,我得到了问号而不是希伯来语。

据我所知,ConvertFromJson没有编码参数,有什么想法可以通过希伯来文吗?

看一看这个词:دיد

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=

有什么想法吗?

好吧,我想更新一下,我通过转换解决了这个问题

($BotUpdates.content | ConvertFrom-Json).response

代替

($BotUpdates | ConvertFrom-Json).response

相关内容

  • 没有找到相关文章

最新更新