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
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:#) {