From 05338c148479a4656d05a50bfaa77f6d9798357c Mon Sep 17 00:00:00 2001 From: qgarnier Date: Tue, 5 Jan 2021 11:19:26 +0100 Subject: [PATCH] fix utf8 ewon (#2478) --- centreon-plugins/hardware/devices/hms/ewon/snmp/mode/listtags.pm | 1 + centreon-plugins/hardware/devices/hms/ewon/snmp/mode/tags.pm | 1 + 2 files changed, 2 insertions(+) diff --git a/centreon-plugins/hardware/devices/hms/ewon/snmp/mode/listtags.pm b/centreon-plugins/hardware/devices/hms/ewon/snmp/mode/listtags.pm index 87bb77bfc..23eb6d93a 100644 --- a/centreon-plugins/hardware/devices/hms/ewon/snmp/mode/listtags.pm +++ b/centreon-plugins/hardware/devices/hms/ewon/snmp/mode/listtags.pm @@ -70,6 +70,7 @@ sub manage_selection { next; } + $result->{name} = $self->{output}->to_utf8($result->{name}); $results->{$instance} = $result; } diff --git a/centreon-plugins/hardware/devices/hms/ewon/snmp/mode/tags.pm b/centreon-plugins/hardware/devices/hms/ewon/snmp/mode/tags.pm index 51f71f027..820bd3730 100644 --- a/centreon-plugins/hardware/devices/hms/ewon/snmp/mode/tags.pm +++ b/centreon-plugins/hardware/devices/hms/ewon/snmp/mode/tags.pm @@ -224,6 +224,7 @@ sub manage_selection { $self->{tags} = {}; foreach (keys %$tags) { + $tags->{$_} = $self->{output}->to_utf8($tags->{$_}); if (defined($self->{option_results}->{filter_tag_index}) && $self->{option_results}->{filter_tag_index} ne '' && $_ !~ /$self->{option_results}->{filter_tag_index}/) { $self->{output}->output_add(long_msg => "skipping '" . $tags->{$_} . "': no matching 'org' filter.", debug => 1);