Solved

System.Text.Encoding.Default ?

Posted on 2009-04-02
1
971 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

740 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