public static void Main()
Console.WriteLine(RemoveUnicode("cao văn dũng"));
public static string RemoveUnicode(string text, bool noToUpper = false)
if (string.IsNullOrWhiteSpace(text))
string[] arr1 = new string[] { "á", "à", "ả", "ã", "ạ", "â", "ấ", "ầ", "ẩ", "ẫ", "ậ", "ă", "ắ", "ằ", "ẳ", "ẵ", "ặ",
"é","è","ẻ","ẽ","ẹ","ê","ế","ề","ể","ễ","ệ",
"ó","ò","ỏ","õ","ọ","ô","ố","ồ","ổ","ỗ","ộ","ơ","ớ","ờ","ở","ỡ","ợ",
"ú","ù","ủ","ũ","ụ","ư","ứ","ừ","ử","ữ","ự",
string[] arr2 = new string[] { "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a", "a",
"e","e","e","e","e","e","e","e","e","e","e",
"o","o","o","o","o","o","o","o","o","o","o","o","o","o","o","o","o",
"u","u","u","u","u","u","u","u","u","u","u",
for (int i = 0; i < arr1.Length; i++)
text = text.Replace(arr1[i], arr2[i]);
text = text.Replace(arr1[i].ToUpper(), arr2[i].ToUpper());
text = text.Replace(" ", "");