open(my $nihongo, '<:encoding(iso2022-jp)', 'text.jis');
open(my $unicode, '>:utf8', 'text.utf8');
while (<$nihongo>) { print $unicode }
When I try that, substituting UTF-8 and ':encoding(UTF-16LE)', I get no warnings, but the output has twice as many characters as it should have and they are all NULLs.
I can supply a my UTF-8 file if anyone wants to have a try. In particular, I think the fact that I have embedded apostrophes (0x27) encoded as RIGHT SINGLE QUOTATION MARK (0x2019) may be part of the problem.
Thanks,
Skip