Fixed garbled characters with multi-byte characters.

This commit is contained in:
Junichi Satoh 2021-01-28 10:49:54 +09:00
parent ff80c974da
commit a88a563b45
1 changed files with 1 additions and 1 deletions

View File

@ -2462,7 +2462,7 @@ sub p_decode_json {
if ($JSON::VERSION > 2.90) {
# Initialize JSON manager.
my $json = JSON->new->allow_nonref;
my $json = JSON->new->utf8->allow_nonref;
$decoded_data = $json->decode($data);
} else {
$decoded_data = decode_json($data);