perl only understands US-ASCII and UTF-8, and the latter requires
use utf8;
If you want to save the file as iso-8859-1 , you need to explicitly decrypt the text.
use open ':std', ':encoding(locale)'; use Encode qw( decode );
But it's probably best to convert the script to UTF-8.
use utf8;
If you are printing a file, make sure you use :encoding(iso-8859-1) when opening the file (no matter which alternative you use).
source share