18
With powershell 2.0:
write-output "abcd" >> mytext.txt
returns:
a nul b nul c nul d nul
od -c shows the nul as a true binary zero, \0 , or: a \0 b \0 c \0 d \0 (and \r \0 \n \0).
I am trying to generate some SQL, so I don't think this will do. Any ideas of what's going on and how to use write-output to just get the specified characters?