in reply to Re: How do I convert text from UTF-8 to UTF-16LE in Perl
in thread How do I convert text from UTF-8 to UTF-16LE in Perl

Actually, since the input is utf8, the "more natural" way (with the "blanks" filled in) would be:
open( my $ifh, "<:utf8", $iname) or die "$iname: $!"; open( my $ofh, ">:encoding(UTF-16LE)", $oname ) or die "$oname: $!"; print $ofh while (<$ifh>);