It's probably easier to open the file as UTF-16
open my $fh, "<:encoding(UTF-16)", $filename or ...
and then operate on the resulting text string as usual...
(Use UTF-16LE, in case the file should have no BOM.)
In reply to Re: unpacking wmic command's unicode output
by almut
in thread unpacking wmic command's unicode output
by goibhniu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |