I have a mysql Database. And It contains a list of users. The users can choose their own username/passwords. Some users have decided to use characters like these in their usernames:
or
The database throws an error; "Incorrect String Value". This is caused because the characters above do not conform to the UT8 format that is required by the mysql database.
How can I detect characters like these to prevent undesired entries on the database?