I have two Unicode encoded files. Both the files look like as in like shown below
File1
Code:
xvEntryID:47F92F70 8E5B46EE547C9ECE
xvTo:NOTES:"Clayton N Corrao/QAE5"<CN=Clayton N Corrao/O=QAE5>
xvFrom:NOTES:"Notes Admin/QAE5"<CN=Notes Admin/O=QAE5>
xvDate:Thursday, 26 July 2007 20:15:44
xvSubject:#12 - Message with 2 Attachments
xvMsgClass:65
xvX-Priority:50
File2
Code:
ņ䀀xvEntryID:47F92F708E5B46EE547C9ECE
xvTo:NOTES:"Clayton N Corrao/QAE5"<CN=Clayton N Corrao/O=QAE5>
xvFrom:NOTES:"Notes Admin/QAE5"<CN=Notes Admin/O=QAE5>
xvDate:Thursday, 26 July 2007 20:15:44
xvSubject:#12 - Message with 2 Attachments
xvMsgClass:65
xvAttach:[microsoft powerpoint xp.ppt] [adobe acrobat 6.0.pdf]
xvSize:621371
ņ䀀xvEntryID:47F9306B70EA33598500A33B
xvTo:NOTES:"Clayton N Corrao/QAE5"<CN=Clayton N Corrao/O=QAE5>
xvFrom:NOTES:"Notes Admin/QAE5"<CN=Notes Admin/O=QAE5>
xvDate:Thursday, 26 July 2007 20:19:55
xvSubject:#12 - Message with 2 Attachments
xvMsgClass:65
xvAttach:[microsoft powerpoint xp.ppt] [adobe acrobat 6.0.pdf]
xvSize:621447
As some of the fields are the same in both the files, I'll have to compare only those fields against their respective values (eg:xvEntryID:47F92F70 8E5B46EE547C9ECE and so on) and return True if those fields are the same in both the files.
I'm stuck up with this code and any kind of help is appreciated.