0

i am faced with the following problem when using Wordpress Search.

If i create a post titled "Try Something", with body "Hello testing t&y thank you".

If i now take a look in my db, i see that the special character "&" has been encoded to "&" in the post body.

Then, if i try to search "t&y" i get no results. I suspect this is because of special character encoding? I can see that the search query is looking for

?s=t%26y

I suspect the encoding mismatch is the reason i am getting no results in my search.

What is strange, if i create a post with title "Testing t&y today" i can see in the database that the character was not encoded and stored normal as follows "Testing t&y today" and yes the search "t&y" does return it in results.

How would i solve the issue?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.