• You're welcome. Happy you got it sorted.

    As I said though, "Unicode" = UTF-16LE. I was saying to try the input file in UTF-32 format. Something like this would have created it:

    "Hello world!" | Out-File -FilePath C:\InputFile.txt -Encoding UTF32

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato