kdcorp87 4 Junior Poster in Training
textBox1.Text = File.ReadAllText(ofd.FileName,Encoding.UTF8);//working
            richTextBox1.Text=File.ReadAllText(ofd.FileName, Encoding.UTF8)//not working;

i write the above code, in file there are some of my native language, which came nicely in textbox but not in richtextbox, richtextbox showing some boxes.

i m now use multiline textbox to get rid of that, but it would be nice to use richtextbox any of u can help to know me how can richtextbox can show unicode text?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.