Out-File
defaults to Unicode
encoding. StreamWriter
defaults to UTF8
which uses half the space for common western characters.
I guess the designers of Out-File
made a mistake here and picked an unhelpful default. UTF8 is unicode just like UTF-16 is. Just smaller in many common cases. No functional difference.