From 01e3b7fbbc8280e22c5978b3ca49e9d3efd850e6 Mon Sep 17 00:00:00 2001 From: Quentin Gibeaux Date: Wed, 13 Feb 2019 17:06:26 +0100 Subject: [PATCH] fix script utf8 reading json --- podcasts/scripts/make-all-podcasts.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/podcasts/scripts/make-all-podcasts.pl b/podcasts/scripts/make-all-podcasts.pl index 98d32ad..c59487d 100755 --- a/podcasts/scripts/make-all-podcasts.pl +++ b/podcasts/scripts/make-all-podcasts.pl @@ -38,7 +38,7 @@ sub read_config { my ($filename) = @_; my $json_text = do { #read all the file in one shot - open(my $json_fh, "<:encoding(UTF-8)", $filename) + open(my $json_fh, "<", $filename) or die("Can't open \$filename\": $!\n"); local $/; <$json_fh>