Bug 18341 - NO-BREAK SPACE is not counted as white space in search queries.
Summary: NO-BREAK SPACE is not counted as white space in search queries.
Status: CLOSED WORKSFORME
Alias: None
Product: Koha
Classification: Unclassified
Component: Searching (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Galen Charlton
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-27 20:27 UTC by Barton Chittenden
Modified: 2024-07-04 20:37 UTC (History)
1 user (show)

See Also:
GIT URL:
Initiative type: ---
Sponsorship status: ---
Comma delimited list of Sponsors:
Crowdfunding goal: 0
Crowdfunding committed: 0
Crowdfunding contact:
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
CSV file containing titles separated by NO-BREAK SPACE (421 bytes, text/csv)
2017-03-27 20:27 UTC, Barton Chittenden
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Barton Chittenden 2017-03-27 20:27:06 UTC
Created attachment 61648 [details]
CSV file containing titles separated by NO-BREAK SPACE

I've transcribed this from a ticket that one of our partners submitted. 

A librarian noted that she had an Excel spreadsheet of titles she was copying and pasting into Koha to search, and occasionally one of the titles wouldn't come up even though they have the book. ( CSV file containing titles is attached.)  She noted if she just typed the title into Koha, it came up w/o a problem.
Here's a screenshot of one of the failed searches.

Notice the %C2%A0  between the words. That's the UTF-8 code for non-breaking space (see http://www.fileformat.info/info/unicode/char/00a0/index.htm).

--

The underlying issue here is that when we paste in a search term containing the unicode NO-BREAK SPACE glyph, this arguably should be treated as white space, and the search should succeed if it matches strings with words separated by other whitespace characters.
Comment 1 Katrin Fischer 2023-09-10 21:04:16 UTC
I cannot replicate this with the CSV file provided.