I want to look for non utf8 characters in my MySQL database when the user inputs addesses there are usually other characters, especially when a user copies directly from PDF file to input box
I tried this but it gives me all the columns doesn't matter if they have non utf8 characters. Is there a SQL query that would do this and only target non UTF-8 characters?
SELECT * FROM MyTable WHERE LENGTH(MyColumn) = CHAR_LENGTH(MyColumn)
This is my database table
table name: employees
emp_num(int)
birth_date(date)
first_name (varchar(15))
last_name (varchar(20))
gender (ENUM('M','F'))
address (varchar(50))
So what I did was
SELECT * FROM employees WHERE LENGTH(address) = CHAR_LENGTH(address)
Don't know if this is correct
this image is from my database, see the weird Y that is what is coming out and other characters too.