krakozyabry displayed at the output stream (text Russian). I tried to convert to the standard encoding for the OS (last 3 lines) and output the same thing. Who can say what?
var cmd1 = new ProcessStartInfo { FileName = "cmd.exe", Arguments = @"/k """ + cmd + @"""", Verb = "runas", UseShellExecute = false, RedirectStandardInput = true, RedirectStandardOutput = true, WorkingDirectory = cl }; var process = Process.Start(cmd1); StreamReader sr1 = process.StandardOutput; using (StreamWriter sr = process.StandardInput) { if (sr.BaseStream.CanWrite) { sr.WriteLine(@"cl " + outname + @".cpp " + param); System.Threading.Thread.Sleep(2500); sr.WriteLine(@"exit"); buffer = sr1.ReadToEnd(); } } textBox1.Paste(buffer); //byte[] ucb = Encoding.Default.GetBytes(buffer); //char[] ucc = Encoding.Default.GetChars(ucb); //string buffer1 = new string(ucc); //textBox1.Paste(buffer1);