in reply to Encode: unable to change encoding of strings
The -COE sets for utf8 output, and binmode sets the STDIN for latin1.
perl -COE -npe 'BEGIN{binmode q(:encoding(latin1))} ' < file
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Encode: unable to change encoding of strings
by Hue-Bond (Priest) on Jul 09, 2006 at 02:45 UTC |