@@ -, +, @@ --- C4/Search.pm | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) --- a/C4/Search.pm +++ a/C4/Search.pm @@ -1180,7 +1180,7 @@ sub searchResults { # add search-term highlighting via s on the search terms my $span_terms_hashref; for my $span_term ( split( / /, $searchdesc ) ) { - $span_term =~ s/(.*=|\)|\(|\+|\.|\*)//g; + $span_term =~ s/(.*=|\)|\(|\+|\.|\*|\")//g; $span_terms_hashref->{$span_term}++; } @@ -1356,6 +1356,9 @@ sub searchResults { if ( length($term) > 3 ) { $term =~ s/(.*=|\)|\(|\+|\.|\?|\[|\]|\\|\*)//g; foreach(qw(title subtitle author publishercode place pages notes size)) { + if (! utf8::is_utf8($term)) { + utf8::decode($term); + } $oldbiblio->{$_} =~ s/$term/$&<\/span>/gi; } } --