From 880b5058c79a8285170691b4762a4460cc1a12c8 Mon Sep 17 00:00:00 2001 From: qgarnier Date: Fri, 10 Sep 2021 09:32:27 +0200 Subject: [PATCH] enh(sccm): database-replication-status - encoding management (#3092) --- apps/microsoft/sccm/local/mode/databasereplicationstatus.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/microsoft/sccm/local/mode/databasereplicationstatus.pm b/apps/microsoft/sccm/local/mode/databasereplicationstatus.pm index 8b11c70a6..5861b2039 100644 --- a/apps/microsoft/sccm/local/mode/databasereplicationstatus.pm +++ b/apps/microsoft/sccm/local/mode/databasereplicationstatus.pm @@ -194,7 +194,7 @@ sub manage_selection { my $decoded; eval { - $decoded = JSON::XS->new->utf8->decode($stdout); + $decoded = JSON::XS->new->decode($self->{output}->decode($stdout)); }; if ($@) { $self->{output}->add_option_msg(short_msg => "Cannot decode json response: $@");