Powershell base64 vs regular base64
Adding the comment from @Raziel as an answer for better discoverability of this question.
[System.Text.Encoding]::Unicode]
is UTF-16, the later is UTF-8. There's [System.Text.Encoding]::UTF8
that you can use.
Adding the comment from @Raziel as an answer for better discoverability of this question.
[System.Text.Encoding]::Unicode]
is UTF-16, the later is UTF-8. There's [System.Text.Encoding]::UTF8
that you can use.