in reply to Re^3: How to check the encoding format of an XML
in thread How to check the encoding format of an XML

Or using the open pragma
perl -Mopen=:std,IN,:raw:perlio:encoding(UTF-16le),OUT,:raw:perlio:enc +oding(UTF-8) -pe 1 < file.xml > file.utf8.xml