title: Setting textbox encoding in Windows Forms
body: <p>When I try to get some text from file and display it in textbox it is okay until I want to write Czech characters (e. g. čšž). They show up like: <code>Moj� nejv�t�� z�libou je �e�en� koresponden�n�ch semin���</code> </p>
  
  <p>Should I set encoding to loaded text just before I assign it to textBox1.text or it is possible to change encoding of textBox1.Text itself?</p>
  
  <p>I use following code:</p>
  
  <pre><code>textBox1.Text = File.ReadAllText(file);
  </code></pre>