Forums › Forums › Search & Filter Pro › Apostrophes in keyword search term
Tagged: apostrophe, character encoding, No results
- This topic has 10 replies, 3 voices, and was last updated 8 years ago by Anonymous.
-
Anonymous(Private) December 18, 2016 at 9:52 pm #77427
Hi there,
I cannot find a solution to my problem in the forums so I’m opening a new topic… so apologies if this has been asked many times before.
I have my search and filter all working correctly with the PRO plugin however when I search for a title (I am searching film titles) that contains an apostrophe I get no results. For example, searching
one flew over the cuckoo’s nest
returns no results but I have verified that this is down to film titles with apostrophes and if I search for the partial film title it returns correctly (eg. one flew over).I presume this is down to my character encoding (in the database vs my html document?)… but I don’t know where to start investigating this or whether I can add an action/filter to my functions.php to sanitise the search string in some way?
Any information on where to find a solution for this would be great.
Thank you,
CHAnonymous(Private) December 19, 2016 at 5:33 pm #77595Hi Trevor,
Thanks for the release info.
I have now upgraded to 2.2.0 and unfortunately I am still experiencing the same issue.
I search my site for a film title that contains an apostrophe and it returns no results. Searching any of the titles that contain no apostrophes works fine.Any ideas or pointers in the right direction to resolving this would be great.
Regards,
CHRoss Moderator(Private) January 27, 2017 at 4:27 pm #86120@jennifer I’ve split this – https://support.searchandfilter.com/forums/topic/split-apostrophes-in-keyword-search-term/
-
AuthorPosts