Click here to Skip to main content
15,891,951 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
is richtext box cant take unicode char?
i write some of my native language which can get in textbox but cant get in richtextbox other then some boxes. any one can help?


textBox1.Text = File.ReadAllText(ofd.FileName,Encoding.UTF8);//working

     richTextBox1.Text=File.ReadAllText(ofd.FileName, Encoding.UTF8)//not working;
Posted

1 solution

This could be because the font that your RTB is using doesn't have that character.

Take a look at this[^] thread from MSDN Social for suggestions.
 
Share this answer
 
Comments
Espen Harlinn 17-Jan-11 9:51am    
5+ I would have thought that this was something a developer from Bangladesh was familiar with
kdgupta87 17-Jan-11 11:46am    
thnx

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900