Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

System.Text.Encoding.Default ?

Posted on 2009-04-02
1
Medium Priority
?
996 Views
Last Modified: 2012-05-06
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
0
Comment
Question by:VBdotnet2005
1 Comment
 
LVL 7

Accepted Solution

by:
cmrobertson earned 500 total points
ID: 24055325
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

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…

926 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question