]> git.koha-community.org Git - koha.git/commit
Bug 14431: FIX encoding issues in search (staff client)
authorJonathan Druart <jonathan.druart@koha-community.org>
Mon, 22 Jun 2015 10:45:50 +0000 (12:45 +0200)
committerChris Cormack <chrisc@catalyst.net.nz>
Mon, 13 Jul 2015 23:42:29 +0000 (11:42 +1200)
commitacdf64889d6652750fd4b6b08525f85e752350da
tree23ed1cff796b77ab9d3b208e5a17727636e7cca0
parent42b55cf0f5b2e9a2b5e14f03fbb98ef2d8ec3f3f
Bug 14431: FIX encoding issues in search (staff client)

Note that this does not appears at the OPAC.

We will need 2 different testers here, the results seem to depend on the
Encode version.

0/ Determine your Encode version (`pmvers Encode`).
If you have 2.60:
1) /cgi-bin/koha/catalogue/search.pl?q=ééé&op=Submit
You should get
" No results match your search for 'kw,wrdl: ���' in my library Catalog."
2) /cgi-bin/koha/catalogue/search.pl?q=ກ
You should get
Cannot decode string with wide characters at
/usr/lib/i386-linux-gnu/perl/5.20/Encode.pm line 215.

If you have <2.60 (? not sure here):
1) /cgi-bin/koha/catalogue/search.pl?q=ééé&op=Submit
You should not get encoding problems.
2) /cgi-bin/koha/catalogue/search.pl?q=ກ
You should not get encoding problems.

Apply this patch, try again 1 and 2.
If the Encode version is >=2.60, the encoding issues should be fixed.
If not, please detail if there are any regression.

NOTE: Tested on Ubuntu 14.04, Debian 8, and Debian 7. See comment #3.

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>
(cherry picked from commit ffedc98577f4967181e9a17886483c6ac5a1d140)
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
catalogue/search.pl