mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 09:15:15 +02:00
Fixed garbled characters with multi-byte characters.
This commit is contained in:
parent
ff80c974da
commit
a88a563b45
@ -2462,7 +2462,7 @@ sub p_decode_json {
|
|||||||
|
|
||||||
if ($JSON::VERSION > 2.90) {
|
if ($JSON::VERSION > 2.90) {
|
||||||
# Initialize JSON manager.
|
# Initialize JSON manager.
|
||||||
my $json = JSON->new->allow_nonref;
|
my $json = JSON->new->utf8->allow_nonref;
|
||||||
$decoded_data = $json->decode($data);
|
$decoded_data = $json->decode($data);
|
||||||
} else {
|
} else {
|
||||||
$decoded_data = decode_json($data);
|
$decoded_data = decode_json($data);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user