I'm having a problem with hidden non-ASCII characters (spaces) in my database.
How can I replace them with normal spaces and convert them before being inserted to avoid future problems?
I'm still not 100% sure what's happening, but I think it's with the non-ASCII spaces. Any advice to help track it down will help.
Here's what's happening:
I have a database with keywords and if I search for "test keyword", nothing shows up. I know for a fact that "test keyword" is in the database.
If I search for "test" or "keyword", it will show up.
If I do a query with:
SELECT * FROM keywords WHERE keyword regexp '[^ -~]';
(found here)
It will display "test keyword" - giving me the conclusion there is a non-ASCII character with the space in "test keyword".