in reply to Re^2: Unicode issues with emc uemcli
in thread Unicode issues with emc uemcli
That data is encoded with UTF-16LE. Although I'm not sure if there's a more elegant way to solve this because I'm not familiar with the "uemcli" command, by adding the following code to the example I posted above, you will get the properly decoded Perl string in $str.
use Encode qw/decode/; my $str = decode('UTF-16', $out, Encode::FB_CROAK);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Unicode issues with emc uemcli
by pritesh_ugrankar (Monk) on Sep 07, 2020 at 21:55 UTC | |
by haukex (Archbishop) on Sep 08, 2020 at 07:01 UTC | |
by pritesh_ugrankar (Monk) on Sep 08, 2020 at 16:28 UTC | |
by haukex (Archbishop) on Sep 08, 2020 at 16:53 UTC | |
by pritesh_ugrankar (Monk) on Sep 08, 2020 at 18:47 UTC | |
| |
by ikegami (Patriarch) on Sep 07, 2020 at 23:12 UTC | |
by haukex (Archbishop) on Sep 08, 2020 at 06:52 UTC | |
Re^4: Unicode issues with emc uemcli
by pritesh_ugrankar (Monk) on Sep 07, 2020 at 20:57 UTC | |
by haukex (Archbishop) on Sep 08, 2020 at 06:54 UTC |