Abolfazl

Abolfazl

  • 1.5k
  • 184
  • 78.9k

how to convert a illegible string to legible string?

Jun 9 2014 6:01 AM
hi
i want to convert a illegible string to legible.i try this code: 
 
string encoded_text = richTextBox1.Text;
string decoded_text;
byte[] b = System.Text.Encoding.Default.GetBytes(encoded_text);
decoded_text = System.Text.Encoding.UTF8.GetString(b);
richTextBox2.Text = decoded_text;
 
but when i convert encoded_text just show ? in richtextbox2.
can you help me?
 
 you can download my project by this link: download my project
 
thanks 

Answers (1)