Powersheel Invoke-WebRequest/ ConvertFrom-Json question marks instead of hebrew
$10-30 USD
Fechado
Publicado há aproximadamente 4 anos
$10-30 USD
Pago na entrega
powershell does not show hebrew characters using Invoke-WebRequest/ ConvertFrom-Json
I get only question marks. I understand the problem with all non english requests
Code is
$headers = New-Object "[login to view URL][[String],[String]]"
$[login to view URL]("X-API-KEY", 'XXXXXXXXXXXXXXXXXXXX')
$[login to view URL]("Accept", 'application/json')
$Url = '[login to view URL]'
Invoke-WebRequest -method GET -uri $url -Headers $headers -UseBasicParsing -ContentType "text/plain; charset=Windows-1255" | ConvertFrom-Json | Select-Object -ExpandProperty items | ConvertTo-Csv -NoTypeInformation
result is
"1136","59","???????? ?????????? ????????????","??????","????????",,"XXX@[login to view URL]",,"False","False","2020-04-05T07:23:16Z","2020-04-05T07:23:16Z"
"1135","43","TESTCUSTOMER??????????","????????","?????????? ????????????",,"aaaaaaaa@[login to view URL]",,"False","False","2020-04-02T12:19:22Z","2020-04-02T12:19:22Z"
I'm a Systems Engineer and create powershell scripts to develop solutions and automate tasks for applications like JIra, Confluence, and Bitbucket.
I've faced such issues before and already have some code to get started.