Is there any way to replace any foreign characters for example: ã, ä to a, Ĉ, ć to c etc.
I mean to leave simple letters like a-Z, without any additional things.
Is there any way to replace any foreign characters for example: ã, ä to
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can do this regular expression, if regexps are available to you:
If you wish to normalize your text, however, you should do as the accepted answer for this question suggests: Remove diacritical marks (ń ǹ ň ñ ṅ ņ ṇ ṋ ṉ ̈ ɲ ƞ ᶇ ɳ ȵ) from Unicode chars
If you need to achieve the same thing in PHP you can write: