From: dbs Date: Tue, 30 Jun 2009 02:56:54 +0000 (+0000) Subject: Treat SRU queries as UTF8 input. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=dc6e283e228931305a9690c1640ead906faac05d;p=evergreen%2Fmasslnc.git Treat SRU queries as UTF8 input. Resolves a problem whereby any non-ASCII input in SRU queries resulted in searches for corrupted strings (and consequently 0 hits) git-svn-id: svn://svn.open-ils.org/ILS/trunk@13486 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat.pm b/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat.pm index 55d54c072f..5057f6e5ad 100644 --- a/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat.pm +++ b/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat.pm @@ -1618,8 +1618,8 @@ sub sru_search { my ($shortname, $holdings) = $url =~ m#/?([^/]*)(/holdings)?#; if ( $resp->type eq 'searchRetrieve' ) { - my $cql_query = $req->query; - my $search_string = $req->cql->toEvergreen; + my $cql_query = decode_utf8($req->query); + my $search_string = decode_utf8($req->cql->toEvergreen); # Ensure the search string overrides the default site if ($shortname and $search_string !~ m#site:#) {