http://qs1969.pair.com?node_id=358832

This little program works fine to convert a UTF-16 file to UTF-8:

#! perl use encoding "utf16", STDOUT => "utf8"; while (<>) { print }
But when I try to do what I think is the same thing from the command line:
perl -Mencoding=utf16,STDOUT,utf8 -p -e 1 < in > out
The resulting file is a whacked semi-utf-16 format.