From 5e8342a389b34fe8b91860115bf68c24553d3ba1 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 --- Koha/SuggestionEngine/Plugin/ExplodedTerms.pm | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/Koha/SuggestionEngine/Plugin/ExplodedTerms.pm b/Koha/SuggestionEngine/Plugin/ExplodedTerms.pm index c0c6166..b4bacbc 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, -- 1.7.2.5