NUL-byte between every other character in output NUL-byte between every other character in output powershell powershell

NUL-byte between every other character in output


In PowerShell > is effectively the same as | Out-File and Out-File defaults to Unicode encoding. Try this instead of using >:

... | Out-File outputfile -encoding ASCII