P is for Practical | |
PerlMonks |
Re^2: Removing Non-Ascii chars from text fileby freonpsandoz (Beadle) |
on Oct 02, 2016 at 05:06 UTC ( [id://1173108]=note: print w/replies, xml ) | Need Help?? |
You also need to be aware of what the encoding of the file is and what encoding Perl defaults to on your system. For a UTF-8 file on Windows, I found that I needed to add "use open qw(:std :utf8);" before the "s///" command so that Perl would expect the input to be UTF-8.
In Section
Seekers of Perl Wisdom
|
|