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
open( my $ifh, "<:utf8", $iname) or die "$iname: $!"; open( my $ofh, ">:encoding(UTF-16LE)", $oname ) or die "$oname: $!"; print $ofh while (<$ifh>);
|
|---|