I manage a site which registers students via a form which is used to update MySql tables and email back registration confirmations via a set of php scripts.
Most of the registering students are resident in Asia and I assume normally use their computers with their native language character sets.
Although we ask for forms input to be in English we dont always get it. The resultant havok that the equivalent control characters reak on the data base tables can be catastrophic when input is in Korean, Japanese or one of the Chinese character sets.
Can anyone suggest a way of checking the character set used as soon as the user starts form filling and poping up an alert to prevent input of, to me illegal characters ?