From 252568aa8babdcc9508d3b3c7626543bfa648d99 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Tue, 2 Apr 2013 14:06:02 +0200 Subject: [PATCH] Bug 9951: Followup for Tools Adds decoding for Patron Cards/Patron Search and Tags (moderation). Test plan: Goto Tools. Add accent with diacritics in both areas. Check if you do not see converted characters. Signed-off-by: Chris Cormack Signed-off-by: Jared Camins-Esakov --- patroncards/members-search.pl | 1 + tags/review.pl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/patroncards/members-search.pl b/patroncards/members-search.pl index ef7a7760f1..8ab249bc1e 100755 --- a/patroncards/members-search.pl +++ b/patroncards/members-search.pl @@ -34,6 +34,7 @@ my $startfrom = $cgi->param('startfrom')||1; my $resultsperpage = $cgi->param('resultsperpage')||C4::Context->preference("PatronsPerPage")||20; my $category = $cgi->param('category') || undef; my $member = $cgi->param('member') || ''; +utf8::decode($member); my $orderby = $cgi->param('orderby') || undef; my @categories=C4::Category->all; diff --git a/tags/review.pl b/tags/review.pl index 3b7a0a0b43..540592444e 100755 --- a/tags/review.pl +++ b/tags/review.pl @@ -23,7 +23,7 @@ use warnings; use strict; use Data::Dumper; use POSIX; -use CGI; +use CGI qw/-utf8/; use CGI::Cookie; # need to check cookies before having CGI parse the POST request use C4::Auth qw(:DEFAULT check_cookie_auth); -- 2.39.5