From 36249ad98d2922d19c7102c9a5e8682b6e403826 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 16 Apr 2014 11:10:34 +0200 Subject: [PATCH] Bug 11944: Fix encoding issue for the "Did you mean" feature Test plan: 1/ Go on admin/didyoumean.pl and enable the feature for the OPAC 2/ Generate and use the french templates 3/ Launch a search at the OPAC 4/ You should see correctly encoded message Signed-off-by: Paola Rossi Signed-off-by: Bernardo Gonzalez Kriegel Signed-off-by: Dobrica Pavlinusic Signed-off-by: Martin Renvoize Signed-off-by: Tomas Cohen Arazi --- Koha/SuggestionEngine/Plugin/ExplodedTerms.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Koha/SuggestionEngine/Plugin/ExplodedTerms.pm b/Koha/SuggestionEngine/Plugin/ExplodedTerms.pm index c0c6166375..b4bacbc1ae 100644 --- a/Koha/SuggestionEngine/Plugin/ExplodedTerms.pm +++ b/Koha/SuggestionEngine/Plugin/ExplodedTerms.pm @@ -88,9 +88,7 @@ sub get_suggestions { $thissearch = "$index=$thissearch" unless ( $thissearch =~ s/OP!/$index=/g ); $template->{VARS}->{index} = $index; - my $label = pack("U0a*", $template->output); #FIXME: C4::Templates is - # returning incorrectly-marked UTF-8. This fixes the problem, but is - # an annoying workaround. + my $label = $template->output; push @results, { 'search' => $thissearch, -- 2.39.5