Skip Navigation

[Resolved] Search for name with apostrophe yields no results on mobile only

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

This topic contains 4 replies, has 2 voices.

Last updated by Christopher Amirian 1 year, 9 months ago.

Assisted by: Christopher Amirian.

Author
Posts
#2549741

Jim

I am trying to:
I have a feature for searching for custom post type instances (Therapists). If you search for a person with an apostrophe in their name, you get results on desktop. However, the same search on iPhone yields no results.
Example name: D'amico
There are two results when searching on desktop but no results when searching on mobile.

If I search for Amico ( exclude the D; ) the search works on mobile.

Link to a page where the issue can be seen:
hidden link

I expected to see:
Two search results: therapists Claire D’Amico and Rina D’Amico

Instead, I got:
No therapists found matching your search.

Is this a bug or is there something I should be doing to prevent this from happening?

#2549789

Jim

Hi. Since submitting this ticket I have learned more about the situation.

It turns out that mobile keyboards use the backtick by default instead of the apostrophe. As a result, the search doesn't match what's in the database as it's searching for D`Amico instead of D'Amico.

Is there a way to get around this? Can I have the search just ignore punctuation?

#2550097

Christopher Amirian
Supporter

Languages: English (English )

Hi there,

No unfortunately it is not possible as Toolset can just search what is there in the database.

Please check the website with other mobile phone as my phone adds the ' character correctly and it does not add`.

So either check with another phone, or change the keyboard to reflect a standard one in the settings of the phone.

Sometimes searching in other language might cause tegh issue as the key stroke for the other languages yields a ` result instead of '.

Thanks.

#2550463

Jim

Thanks Christopher.

It's an interesting problem. Different mobile keyboards seem to display different characters that look like an apostrophe.

#2550949

Christopher Amirian
Supporter

Languages: English (English )

Hi there,

If you use a standard Keyboard in Android or IOS it will print ' which is the correct character for your case.

If you use third-party applications for keyboard or your keyboard is currently showing on another language (For example German) which has the same character set but different standard might print something else than '.

Thanks.