String unescapedString = Regex.Unescape(textString);
string x = x.Replace("\"","");
static void Main(string[] args) { string input = @"\0EISO0160000500800822000000000000004000000000000000408150522100522001\u0001\a"; string deescaped= input .Replace(@"\0E", "") .Replace(@"\u0001", "") .Replace(@"\a", ""); Console.WriteLine("Input: " + input); Console.WriteLine("Deescaped: " + deescaped); Console.ReadKey(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)