Use utf-8 always when reading JSON

This commit is contained in:
Jamie Cameron
2020-06-29 12:07:12 -07:00
parent 7c597477d7
commit f02e65c7d7

View File

@@ -11034,7 +11034,7 @@ sub convert_from_json
eval "use JSON::PP";
if (!$@) {
my ($json_text) = @_;
return JSON::PP->new->latin1->decode($json_text);
return JSON::PP->new->utf8->decode($json_text);
}
else {
error("The JSON::PP Perl module is not available on your system : $@");