NUL-byte between every other character in output

前端 未结 1 583
迷失自我
迷失自我 2021-01-04 05:24

I\'m using Ruby to read and then print a file to stdout, redirecting the output to a file in Windows PowerShell.

However, when I inspect the files, I get this for th

相关标签:
1条回答
  • 2021-01-04 05:47

    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
    
    0 讨论(0)
提交回复
热议问题