System.Text.Encoding.Default ?

What does it mean when we use "System.Text.Encoding.Default" in vb.net?




  Dim ffile As FileStream = File.Open(strFile, FileMode.OpenOrCreate, FileAccess.Read)
         
  Dim sr As New StreamReader(ffile) , System.Text.Encoding.Default)   < this line
VBdotnet2005Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
cmrobertsonConnect With a Mentor Commented:
System.Text.Encoding.Default property corresponds to the system's current ANSI code page, this is important to ensure that your data is proprly decoded.
here is a link that explains the potential issues if you do not use correct decoding
0
All Courses

From novice to tech pro — start learning today.