How to remove accentuated characters from a string with C#
Aug 31, 2011
1 minute read

How to remove accentuated characters from a string with C

public string RemoveAccentuatedCharacters(string input)
{
	byte[] aOctets = System.Text.Encoding.GetEncoding(1251).GetBytes(input);
	return System.Text.Encoding.ASCII.GetString(aOctets);
}


comments powered by Disqus