From ff4b60d49c372a436dc1cf137c21620ebb50d918 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 [ Trimmed text, look original patch :( ] Signed-off-by: Paola Rossi Signed-off-by: Bernardo Gonzalez Kriegel Comments: No koha-qa erros, save for a FAIL on first patch for enabling utf8, and third to last patch, because it take ages and not finish :) But there are simple changes, I think there must no be a problem As with many enconding problems, some I can not reproduce, but some yes, and that are fixed For example: 1) password (no problem before or after) 2) fund (no problem before or after) 3) frecuency (no problem before or after) 4) Numbering pattern (no problem before or after) 5) List (shelfs), content, mail (bad before, fixed) 6) Cart content, mail (bad before, fixed) 7) didyoumean (no problems before or after) Works for me. --- 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.9.5