In the following block of code,the letters accented are not recognized (i fall into the "else")
StringBuilder sb = new StringBuilder();
foreach (char c in str) {
if ((c >= '0' && c <= '9') || (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') || c == '.' || c == '_') {
sb.Append(c);
}
else
{
// if c is accented, i arrive here
}
What can i do to ignore accents? thanks for your help