CSharp examples for System:String Strip
Remove Accent
using System.Threading.Tasks; using System.Text.RegularExpressions; using System.Text; using System.Linq; using System.Globalization; using System.ComponentModel; using System.Collections.Generic; using System;/* w w w . j av a2s. c o m*/ public class Main{ public static string RemoveAccent(this string txt) { byte[] bytes = System.Text.Encoding.GetEncoding("Cyrillic").GetBytes(txt); return System.Text.Encoding.ASCII.GetString(bytes); } }