I am creating a small app in C# to search for filenames based on information passed from a SQL query. Within the data passed from the SQL query there will be on occasion (po
var s1 = ToASCII("Hervé"); var s2 = ToASCII("Mañana"); string ToASCII(string s) { return String.Join("", s.Normalize(NormalizationForm.FormD) .Where(c => char.GetUnicodeCategory(c) != UnicodeCategory.NonSpacingMark)); }