Search code examples
c#regexunicodenormalizationunicode-normalization

Arabic Problem Replace أً with just ا


How to replace the alf bel tanween with a normal alf


Solution

  • Thanks to Bolo's enlightment after a couple of minutes of searching i did it like that:

    string s = "";
            foreach (Char c in x)
            {
                if (((int)c).ToString("x").ToLower() != "64b")
                    s += c.ToString();
    
            }
    

    where x is my string

    Like that I excluded the ARABIC FATHATAN from the string