[Koha-bugs] [Bug 15818] OPAC search with utf-8 characters and without results generates encoding error
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Feb 15 16:34:13 CET 2016
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15818
Jonathan Druart <jonathan.druart at bugs.koha-community.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #48050|0 |1
is obsolete| |
--- Comment #2 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Created attachment 48051
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=48051&action=edit
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 at 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.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list