Merge branch 'ent-fix-multi-byte-chars-treatment' into 'develop'

Fixed garbled characters with multi-byte characters.

See merge request artica/pandorafms!3802
This commit is contained in:
Daniel Rodriguez 2021-02-01 12:18:19 +01:00
commit 897064183c
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);