in reply to unpacking wmic command's unicode output
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.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: unpacking wmic command's unicode output
by goibhniu (Hermit) on Nov 11, 2008 at 19:53 UTC | |
by BrowserUk (Patriarch) on Nov 11, 2008 at 19:59 UTC | |
by ikegami (Patriarch) on Nov 12, 2008 at 18:02 UTC | |
by BrowserUk (Patriarch) on Nov 12, 2008 at 18:26 UTC | |
by ikegami (Patriarch) on Nov 12, 2008 at 19:02 UTC | |
| |
by goibhniu (Hermit) on Nov 11, 2008 at 20:06 UTC |