title: What's the default encoding for System.IO.File.ReadAllText
body: <p>if we don't mention the decoding what decoding will they use?</p>
  
  <p>I do not think it's <code>System.Text.Encoding.Default</code>. Things work well if I <strong>EXPLICITLY</strong> put <code>System.Text.Encoding.Default</code> but things go wrong when I live that empty.</p>
  
  <p>So this doesn't work well</p>
  
  <pre><code>Dim b = System.IO.File.ReadAllText("test.txt")
  System.IO.File.WriteAllText("test4.txt", b)
  </code></pre>
  
  <p>but this works well</p>
  
  <pre><code>Dim b = System.IO.File.ReadAllText("test.txt", System.Text.Encoding.Default)
  System.IO.File.WriteAllText("test4.txt", b, System.Text.Encoding.Default)
  </code></pre>
  
  <p>If we do not specify encoding will vb.net try to figure out the encoding from the text file?</p>
  
  <p>Also what is <code>System.Text.Encoding.Default</code>?</p>
  
  <p>It's the system default. What is my system default and how can I change it?</p>
  
  <p>How do I know encoding used in a text file?</p>
  
  <p>If I create a new text file and open it with scite I see that the encoding is code page property. What is code page property?</p>