Search issue on special Character

I have imported posts from RSS Feed and then on word press default search if i search

Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum – Lorem Ipsum Lorem Ipsum Lorem Ipsum 

It shows me 0 result.

But on changing special character – to - my keyboard minus sign

it will work fine and shows desired result

Please anyone help me out there for that issue.

Topic characters Wordpress search

Category Web


By copying and pasting each dash into a Unicode lookup (linked below), you can see the two characters are different.

Your first string contains an En Dash, which is a different character value than the second string, which is a Hyphen Minus.

When performing a search, WordPress is searching for the Em Dash value in your database, which may not exist. I would double-check the RSS Feed you imported to see which character appears in the content.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.