fix utf8 ewon (#2478)

This commit is contained in:
qgarnier 2021-01-05 11:19:26 +01:00 committed by GitHub
parent 5d184d7b91
commit 5e19da8e0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -70,6 +70,7 @@ sub manage_selection {
next;
}
$result->{name} = $self->{output}->to_utf8($result->{name});
$results->{$instance} = $result;
}

View File

@ -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);