in reply to Reading wide character string from a file
"Wide Character format" most likely means it's encoded using UCS-2le. You're treating it as if it was encoded using iso-latin-1. Just decode it.
open(my $log_fh, '<:encoding(UCS-2le)', $log_qfn) or die("Can't open log file \"$log_qfn\": $!\n");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Reading wide character string from a file
by dsrZ (Initiate) on Oct 22, 2008 at 21:49 UTC | |
|
Re^2: Reading wide character string from a file
by dsrZ (Initiate) on Oct 22, 2008 at 21:46 UTC |