From 70e2b359f1baa6198150c76de048f31a95d751db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Demians?= Date: Thu, 4 Oct 2012 13:02:37 +0200 Subject: [PATCH] Bug 8875 Cataloging authorithy search plugin displays badly accented characters How to get this bug: - To see the bug, you need to have a MARC21/UNIMARC Koha containing authorities having accented, or non-ASCII characters. - You go in bibliographic data entry form. - You select author tag (100/700). - Click on Edit icon. - On auth_finder.pl search dialog box, - On a UNIMARC/MARC21 DB, in Main entry input box, start typing the begining of an heading having extended characters. - The autocompleted search result page displays a mix of extended characters and cryptic characters (UTF-8 bad encoding issue) How to test the patch: - Test on MARC21 DB - Test on UNIMARC DB --- authorities/ysearch.pl | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/authorities/ysearch.pl b/authorities/ysearch.pl index 6584123..f910334 100755 --- a/authorities/ysearch.pl +++ b/authorities/ysearch.pl @@ -74,6 +74,7 @@ my $i = 0; $value .= $heading->{'heading'} . ' '; } $value = "{\"summary\":\"" . $value . "\"" . "}"; + utf8::decode($value); print nsb_clean($value) . "\n"; $i++; } -- 1.7.2.5