use POSIX qw(locale_h); setlocale(LC_CTYPE, "fr_FR.ISO8859-15"); #### export LC_CTYPE="fr_FR.ISO8859-15"