fix script utf8 reading json
This commit is contained in:
parent
d9da3e41f2
commit
01e3b7fbbc
@ -38,7 +38,7 @@ sub read_config {
|
|||||||
my ($filename) = @_;
|
my ($filename) = @_;
|
||||||
|
|
||||||
my $json_text = do { #read all the file in one shot
|
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");
|
or die("Can't open \$filename\": $!\n");
|
||||||
local $/;
|
local $/;
|
||||||
<$json_fh>
|
<$json_fh>
|
||||||
|
Loading…
Reference in New Issue
Block a user