Skip to content

ReadAllText and Encoding?

Mark Fleming

Asked Dec 28, 2005, 7:03 PM EST1 answer
Share
LinkedInX
I am trying to parse a file using ReadAllText.  The log file has a summary section and then an array of data.  The file is not in standard AISCII.  Am I using the correct method and do I just need to find the correct character encoding or am I missing something?  Is there an free/share application that can load the file with different encoding to see which one is correct? 

The file looks like when I open it in Wordpad:

���6 mi steady+���WarmUp 1.00 mi

Run 4 mi 50-80%

Recover 1 mié��°R����

���M��À•\&Uþÿ�'�.
2�7*UþÿQ�}-�†M�ˆl�Œ�•¬�—Í�˜î�˜™.˜O—n–"¯’Џñ’3•U•v"—’¸×’õ’‡)Hh’ˆ’©"Ê"ë—

˜+›Lžl›¯—Ð’ñŒ1’P˜o˜›¯œÎší™

(... for a 300 k file)

I can attach/send the complete file if it would help.

Thanks.

Mark

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0

    Update - I created a little app that displayed the text and used a combo box to select the encoding.  However, I did not find an encoding that displayed the correct characters.  It seems that letters are displayed properly, but numbers are not.  Since the file is a summary section and then a large array of numbers, is there another method that the numbers could be stored in? 

    Thanks.
    Mark

    0