fix #3754: encode JSON as utf8 for CLI

since this output is printed to the command line it should
be encoded to avoid the wide character warnings

Signed-off-by: Stefan Hrdlicka <s.hrdlicka@proxmox.com>
This commit is contained in:
Stefan Hrdlicka 2022-05-11 14:42:37 +02:00 committed by Thomas Lamprecht
parent 23ead37984
commit 3b6479ff28

View File

@ -857,7 +857,7 @@ my $print_agent_result = sub {
return;
}
print to_json($result, { pretty => 1, canonical => 1});
print to_json($result, { pretty => 1, canonical => 1, utf8 => 1});
};
sub param_mapping {