Main Koha release repository https://koha-community.org
Find a file
Dobrica Pavlinusic ea69693997 Bug 15818 - OPAC search with utf-8 characters and without results generates encoding error
When searching for something in OPAC which doesn't result in any results but have utf-8
characters in search string we get following encoding error:

Cannot decode string with wide characters at /usr/lib/i386-linux-gnu/perl5/5.20/Encode.pm line 215.

This is because we are trying to decode string which is allready correctly
marked as utf-8.

Test scenario:

1) enter search string with utf-8 characters in opac which doesn't
   return any results
2) verify that you get application error
3) apply this patch
4) re-run query and verify that errror is gone

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Step 0: Define "OPACNoResultsFound" with '{QUERY_KW}'
Note that I don't get the error (Encode 2.60) but the search terms are
not display correctly.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
The variable to be decoded comes from already decoded vars (via
the -utf8 flag from CGI), following the trail in Search.pm.

Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
2016-02-22 20:28:13 +00:00
acqui Bug 14828: Use Koha::ItemType[s] everywhere C4::ItemType was used 2016-01-27 20:46:58 +00:00
admin Bug 9021 [QA Followup] - Switch to Koha::Object(s) 2016-02-14 12:40:06 +00:00
api/v1 Bug 13799: Add types for patron's fields in Swagger spec 2015-11-04 13:47:33 -03:00
authorities Bug 15358: Fix authorities merge 2016-02-03 23:03:33 +00:00
basket Bug 15258: Fix Perl scripts declaring unused variables 2015-12-30 17:24:45 -07:00
C4 Bug 9021 [QA Followup] - Switch to Koha::Object(s) 2016-02-14 12:40:06 +00:00
catalogue Bug 14828: Use Koha::ItemType[s] everywhere C4::ItemType was used 2016-01-27 20:46:58 +00:00
cataloguing Bug 15358: Fix authorities merge 2016-02-03 23:03:33 +00:00
circ Bug 14828: Use Koha::ItemType[s] everywhere C4::ItemType was used 2016-01-27 20:46:58 +00:00
course_reserves
debian Bug 11081: (followup) Rebuild debian/control 2016-02-16 18:52:36 +00:00
docs Bug 7143: Adding releases and fixing some missing tabs 2016-01-06 16:03:30 -07:00
errors Bug 15288: Error pages: Code duplication removal and better translatability 2016-01-27 05:57:34 +00:00
etc Bug 14332: Skip articles in MARC21 using indicator n.2 of field 245 2016-01-27 06:17:16 +00:00
install_misc Bug 13642 - Remove MARC::Crosswalk::DublinCore from Koha 2016-01-27 06:23:08 +00:00
installer Bug 9021: DBrev 3.23.000.020 2016-02-14 12:50:00 +00:00
Koha Bug 9021: DBrev 3.23.000.020 2016-02-14 12:50:00 +00:00
koha-tmpl Bug 9021 [QA Followup] - Add additional message to deletion warning if provider is in use. 2016-02-14 12:40:08 +00:00
labels Bug 15258: Fix Perl scripts declaring unused variables 2015-12-30 17:24:45 -07:00
members Bug 9021 [QA Followup] - Switch to Koha::Object(s) 2016-02-14 12:40:06 +00:00
misc Bug 15687 [QA Followup] - Tidy sub to remove tab characters 2016-02-03 23:01:07 +00:00
offline_circ Bug 15344: Remove some other calls of GetMemberDetails from pl scripts 2015-12-30 11:53:18 +00:00
opac Bug 15818 - OPAC search with utf-8 characters and without results generates encoding error 2016-02-22 20:28:13 +00:00
OpenILS
patron_lists Bug 11944: use CGI( -utf8 ) everywhere 2015-01-13 13:07:21 -03:00
patroncards Bug 15573: String and translatability fix to Patron Card Creator 2016-01-27 05:36:52 +00:00
plugins
reports Bug 7683: Relabel "acquired date" and "removed date" 2016-01-27 06:37:29 +00:00
reserve Bug 15638: Spelling mistake in request.pl 2016-01-27 05:29:45 +00:00
reviews
rotating_collections Bug 15066: Make transfer rotating collection works under Plack 2015-11-05 09:50:09 -03:00
selenium
serials Bug 14641: [SIGNED-OFF] Warns in subscription-add.pl 2016-01-27 04:31:27 +00:00
services
skel
sms Bug 15258: Fix Perl scripts declaring unused variables 2015-12-30 17:24:45 -07:00
suggestion Bug 15624: Spelling mistake in suggestion.pl 2016-01-27 05:09:09 +00:00
svc Bug 14310 [QA Followup] - Use output_with_http_headers, return 403s 2016-01-27 06:20:19 +00:00
t Bug 9021 [QA Followup] - Unit tests 2016-02-14 12:40:07 +00:00
tags Bug 14589: Adjust authorities_merge_ajax and replace some indirect syntax 2015-11-02 12:49:13 -03:00
test Bug 9819 - 'stopwords'-related code removed 2015-12-30 15:49:35 +00:00
tmp/modified_authorities
tools Bug 15684: Fix encoding issues with quote upload 2016-02-04 00:14:43 +00:00
virtualshelves Bug 15760: Fix order by direction for shelves 2016-02-11 19:42:31 +00:00
xt
.editorconfig
.htaccess
.mailmap
about.pl Bug 7895: Test for PSGI-related env to report in about.pl 2015-11-10 15:18:28 -03:00
changelanguage.pl Bug 9978: (followup) Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:43 -03:00
edithelp.pl
fix-perl-path.PL
help.pl
INSTALL
install-CPAN.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
INSTALL.debian
INSTALL.fedora7 Bug 13642 - Remove MARC::Crosswalk::DublinCore from Koha 2016-01-27 06:23:08 +00:00
INSTALL.opensuse
INSTALL.ubuntu
Koha.pm Bug 9021: Update Koha.pm to DBrev 3.23.000.020 2016-02-14 14:03:32 +00:00
koha_perl_deps.pl
kohaversion.pl
LICENSE
mainpage.pl Bug 10904: (QA followup) Use branch limit if either IndependentBranches or IndependentBranchesPatronModifications is enabled 2015-11-02 12:34:46 -03:00
Makefile.PL Bug 15447 - log4perl.conf does not have __LOG_DIR__ replaced when installing 2015-12-31 11:36:38 +00:00
MANIFEST.SKIP Bug 9546 : Updating make manifest tardist 2013-02-06 23:54:46 -05:00
README
README.robots
rewrite-config.PL Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00

Koha is a free software integrated library system.

Koha is distributed under the GNU GPL version 3 or later.
Please read the file LICENSE for more details.

To install or upgrade Koha, please see the INSTALL file appropriate
to your platform.

Report bugs at http://bugs.koha-community.org/

Visit the Koha Project website at http://www.koha-community.org/