Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

Remover Acentos

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;
}
Source by pt.stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Remover #Acentos
ADD COMMENT
Topic
Name
2+4 =