I am using multilingual characters, use utf8 encoding. Now i need to validate it and avoid special characters while entering it.Is there any way to identify special characters while using multilingual character inputs? what i mean is we can validate special chars like !@%%^&.. while using english.I am looking for the same type of validation.
anybody please help me…
I am using zend php.
thanks in advance.
There’s only one “!”, “@”, “%”, “^” and “&” character respectively. There’s not an “English !” and a “Spanish !” and an “Indian !” and a “Korean !”. They’re all the same character. If they’re encoded in UTF-8, they’re even the same byte as ASCII encoded characters. You can look for them and replace them as before.
There may be characters that look similar, like “!” (fullwidth exclamation mark), but that’s not the same character as “!” and hence does not have a special meaning if “!” has a special meaning.