I recommend :raw:encoding(...), but keep in mind it has the side effect of not adding/removing a CR that preceeds a LF.
Maybe it's worth mentioning (though it has nothing to do with the OP's problem) that - in some cases - you can work around this CR/LF issue by re-adding the Windows specific crlf PerlIO layer (which is being removed by :raw) in a different position in the layer stack, e.g.
:raw:encoding(utf16le):crlf:utf8"
as I described in more detail in this node.
In reply to Re^2: Converting UTF-16 files to UTF-8
by almut
in thread Converting UTF-16 files to UTF-8
by demerphq
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |