From: Hugo Villeneuve Date: Tue, 7 Dec 2021 04:29:25 +0000 (-0500) Subject: Force ouverture de tous les fichiers en UTF-8 X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=f0b19f0a085e484fb4f0b0240d708f1f82c2ac24;p=musique%2Fhvguitartex.git Force ouverture de tous les fichiers en UTF-8 --- diff --git a/gtx2tex.pl b/gtx2tex.pl index 03a120b..f1b3e2a 100644 --- a/gtx2tex.pl +++ b/gtx2tex.pl @@ -22,6 +22,9 @@ use locale; # Configure STDOUT to output in UTF-8 binmode(STDOUT, ":utf8"); +# Open all files in UTF-8 by default +use open ':encoding(utf8)'; + GetOptions( "output=s" => \$output, "lyrics" => \$lyrics, "verbose" => \$verbose,