| View previous topic :: View next topic |
| Author |
Message |
Kal_Torak
Joined: 06 Sep 2005 Posts: 35
|
Posted: Sun May 27, 2007 3:34 pm Post subject: FileRead returns only "ÿþ[". |
|
|
I'm trying to read an MSN Plus event log file which has content in this format:
[5/26/2007 | 6:16:32 PM] Current User (kaltorak2@hotmail.com) - Status changed: Idle
[5/26/2007 | 6:20:39 PM] Dave (ace_lovegrove@hotmail.com) - Status changed: Online
[5/26/2007 | 6:22:56 PM] Mateus... (mateus_ms@hotmail.com) - Signed Out
(It has the usual CR LF line endings)
The problem is that it only returns "ÿþ[".
I've tried all the different ways to read files, and they all return the same thing.
Reading other files works fine.
I also tried copying a few lines of that into a new file, in case something odd was added by MSN Plus, but that still didn't help.
Any ideas? |
|
| Back to top |
|
 |
JGR
Joined: 15 Jun 2006 Posts: 52 Location: Unavailable until ~30th August
|
Posted: Sun May 27, 2007 3:53 pm Post subject: |
|
|
ÿþ is the standard Unicode Byte Order Mark.
That means that your file is in Unicode...
You can either call Win32 api functions to read and transcode it to ASCII or use notepad to open the log and save it as plain (ANSI) text...
JGR |
|
| Back to top |
|
 |
Kal_Torak
Joined: 06 Sep 2005 Posts: 35
|
Posted: Sun May 27, 2007 4:15 pm Post subject: |
|
|
Thanks  |
|
| Back to top |
|
 |
|