Solved

System.Text.Encoding.Default ?

Posted on 2009-04-02
1
932 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 125 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
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 …
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

706 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now