From f02e65c7d79ffebaee7fb2b7d074d2fcf2ee7c2a Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Mon, 29 Jun 2020 12:07:12 -0700 Subject: [PATCH] Use utf-8 always when reading JSON --- web-lib-funcs.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web-lib-funcs.pl b/web-lib-funcs.pl index 5d4af8937..f218f91ae 100755 --- a/web-lib-funcs.pl +++ b/web-lib-funcs.pl @@ -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 : $@");