我正在尝试从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=?
有什么想法吗?
发布于 2020-12-29 01:38:22
好吧,我想更新一下我已经解决了这个问题
($BotUpdates.content | ConvertFrom-Json).response而不是
($BotUpdates | ConvertFrom-Json).responsehttps://stackoverflow.com/questions/65439272
复制相似问题