Technology and me

// 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);
}

Billets similaires

Comments are disabled

RSS Feed
Social ...
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported