The -COE sets for utf8 output, and binmode sets the STDIN for latin1.
perl -COE -npe 'BEGIN{binmode q(:encoding(latin1))} ' < file
In reply to Re: Encode: unable to change encoding of strings
by ioannis
in thread Encode: unable to change encoding of strings
by Hue-Bond
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |