From 3b6479ff28aaf4fa1e65ea0a6b2568b381ed4dd0 Mon Sep 17 00:00:00 2001 From: Stefan Hrdlicka Date: Wed, 11 May 2022 14:42:37 +0200 Subject: [PATCH] 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 --- PVE/CLI/qm.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/CLI/qm.pm b/PVE/CLI/qm.pm index cf0d6f3..6a2e161 100755 --- a/PVE/CLI/qm.pm +++ b/PVE/CLI/qm.pm @@ -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 { -- 2.39.2