fix utf8 ewon (#2478)

This commit is contained in:
qgarnier 2021-01-05 11:19:26 +01:00 committed by GitHub
parent 9a399c3422
commit 05338c1484
2 changed files with 2 additions and 0 deletions

View File

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

View File

@ -224,6 +224,7 @@ sub manage_selection {
$self->{tags} = {}; $self->{tags} = {};
foreach (keys %$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 '' && if (defined($self->{option_results}->{filter_tag_index}) && $self->{option_results}->{filter_tag_index} ne '' &&
$_ !~ /$self->{option_results}->{filter_tag_index}/) { $_ !~ /$self->{option_results}->{filter_tag_index}/) {
$self->{output}->output_add(long_msg => "skipping '" . $tags->{$_} . "': no matching 'org' filter.", debug => 1); $self->{output}->output_add(long_msg => "skipping '" . $tags->{$_} . "': no matching 'org' filter.", debug => 1);