in reply to How to parse input file and print without double space
The file is 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: How to parse input file and print without double space
by kadams (Initiate) on Oct 30, 2008 at 20:45 UTC |