SoFunction
Updated on 2025-03-04

Example of using ascii code to transmit xml escape characters


//Convert to ASCII code
            string old = "j\n\f}m\b|\t?gWZMMIVO";
            char[] cs = ();
           string temp="";
            foreach(char a in cs)
            {
                temp += ((int)a).ToString() + ",";
            }

//Switch to characters
            string newstr="";
            string[] tp = (',');           
             foreach(string st in tp)
             {
                 if(""!=st)
                 newstr += (char)((st));
             }