From 5e19da8e0d1e2fb67a9db6cf8a77eff71d85d452 Mon Sep 17 00:00:00 2001 From: qgarnier Date: Tue, 5 Jan 2021 11:19:26 +0100 Subject: [PATCH] fix utf8 ewon (#2478) --- hardware/devices/hms/ewon/snmp/mode/listtags.pm | 1 + hardware/devices/hms/ewon/snmp/mode/tags.pm | 1 + 2 files changed, 2 insertions(+) diff --git a/hardware/devices/hms/ewon/snmp/mode/listtags.pm b/hardware/devices/hms/ewon/snmp/mode/listtags.pm index 87bb77bfc..23eb6d93a 100644 --- a/hardware/devices/hms/ewon/snmp/mode/listtags.pm +++ b/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/hardware/devices/hms/ewon/snmp/mode/tags.pm b/hardware/devices/hms/ewon/snmp/mode/tags.pm index 51f71f027..820bd3730 100644 --- a/hardware/devices/hms/ewon/snmp/mode/tags.pm +++ b/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);