答案 0 :(得分:3)
取自其他问题的示例字符串
string str = "الْحَمْدُ لِلَّهِ رَبِّ الْعَالَمِينَ";
// to be replaced characters
char[] tashkeel = new char[]{'ِ', 'ُ', 'ٓ', 'ٰ', 'ْ', 'ٌ', 'ٍ', 'ً', 'ّ', 'َ'};
// doing the replacement
foreach(char c in tashkeel)
str = str.Replace(c.ToString(),"");
MessageBox.Show(str);
答案 1 :(得分:1)
试试这个
str= str.Replace("\u064b", "");
str= str.Replace("\u064f", "");
str= str.Replace("\u064c", "");
str= str.Replace("\u0652", "");
str= str.Replace("\u064d", "");
str= str.Replace("\u0650", "");
str= str.Replace("\u0651", "");
str= str.Replace("\u064e", "");