string path = @openFileDialog1.FileName; try { // Open the stream and read it back. using (FileStream fs = File.OpenRead(path)) { byte[] b = new byte[1024]; //UTF8Encoding temp = new UTF8Encoding(true); UTF7Encoding temp = new UTF7Encoding(true); while (fs.Read(b, 0, b.Length) > 0) { textBox1.Text += temp.GetString(b); } } }