Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. mtbPierre

    Reading non-standard charcters with StreamReader

    1252 coding does not work on my files as I mentioned above. Neither do any of the other encodings. I tried djinn01's technique for finding the encoding of the file. 1252 was what came up. VS maybe makes a guess like IE? It's weird everything that you open the file with works ok except for...
  2. mtbPierre

    Reading non-standard charcters with StreamReader

    I've done some research elsewhere and it would appear I'm not the only one to have discovered this problem. Just do a search on Google groups and you'll find loads - none with a fix. You can also use for example: StreamReader sr = new...
  3. mtbPierre

    Reading non-standard charcters with StreamReader

    The problem is that the file is not UTF8 or any of the other formats that the StreamReader seems to support. The file is text from a UNIX system. The characters are all (I think) extended ASCII. The files will open fine in notepad or the .NET IDE or whatever. It would seem .NET has a textreader...
  4. mtbPierre

    Reading non-standard charcters with StreamReader

    I'm using a StreamReader to process files from different countries in this simple way: StreamReader sr = new StreamReader(@"c:\test",System.Text.Encoding.UTF8); while((row=sr.ReadLine()) != null) { //process the line } sr.Close(); However the reader just ignores non-standard...

Part and Inventory Search

Back
Top