Before saving the user entered data I want to check whether the entered data has Special Characters or not. Do not want to save Special Characters
Checking for Special Character can be done in JAVA as given in this link
Checking of Special Character can be done in MYSQL as given in this link
I want to know, Is it better to check Special Characters in JAVA or in MYSQL, In terms of performance?