AutoHotkey Community

It is currently May 25th, 2012, 6:54 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: May 27th, 2007, 3:34 pm 
Offline

Joined: September 6th, 2005, 9:36 pm
Posts: 36
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?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 27th, 2007, 3:53 pm 
Offline

Joined: June 15th, 2006, 6:29 am
Posts: 59
Location: Oriel College
ÿþ 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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 27th, 2007, 4:15 pm 
Offline

Joined: September 6th, 2005, 9:36 pm
Posts: 36
Thanks :)


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Cerberus, Google Feedfetcher, kwfine, Yahoo [Bot] and 68 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group