I wrote a PHP script to harvest some data that I want to enter into a database. This includes user's usernames that need to be entered, some users chose usernames with upside down text, i.e, 'uıɯpɐ'
I get a collation error when I use that username in a WHERE clause, is there a way for php to sanitize that before going into the database to avoid this?
#1267 - Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '='
The way the script is set up I don't have much of a choice but to use the username in the where clause.