I hope it would be trivial for you to answer.
I have gvim and vim on Win7. Each time I redirect the result of a command to a file and open it with Vim (or Gvim, the same effect), I have a binary 0 (^ @ sign) inserted between all characters.
So instead
r96130
I have
^@r^@9^@6^@1^@3^@0^@
Any idea how to (preferably) prevent it or (fine) to get rid of it?
I tried the substitution, but obviously it is not just ^ @, it is binary zero (I think) so that it does not go up /^@.
Edit (s):
1) I tried the encoding settings for UTF-8 (encoding the content I'm working on) and UTF-16 (for @Philippe Wendler's answer, thanks), to no avail.
2) __ PowerShell__ . ( cmd), . , PowerShell, .
3) Powershell, @Christian, . , Ubuntu Vim , "" PowerShell + Vim, , , .: -)
@ Emperor XLII ! , , :
dir | OutFile -Encoding UTF8 test
, Vim . , OEM, ASCII , .
:he 'fileencodings' - , , @ Dan Fitch, , Win7.