From fbe1b8bccda3f4439bdc1909c68d908b9cab2513 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 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 "Voulez-vous dire : Chercher également les termes spécifiques Chercher également les termes génériques Chercher également les termes reliés" Before this patch: "Voulez-vous dire : Chercher �galement les termes sp�cifiques Chercher �galement les termes g�n�riques Chercher �galement les termes reli�s" --- 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 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.10.4