📅  最后修改于: 2022-03-11 14:53:22.495000             🧑  作者: Mango
public static string removerAcentos(string texto)
{
string comAcentos = "ÄÅÁÂÀÃäáâàãÉÊËÈéêëèÍÎÏÌíîïìÖÓÔÒÕöóôòõÜÚÛüúûùÇç";
string semAcentos = "AAAAAAaaaaaEEEEeeeeIIIIiiiiOOOOOoooooUUUuuuuCc";
for (int i = 0; i < comAcentos.Length; i++)
{
texto = texto.Replace(comAcentos[i].ToString(), semAcentos[i].ToString());
}
return texto;
}