Reading any NT System log entries

Mark Hammond MarkH at
Wed Dec 5 05:30:49 CET 2001

Jason Byars wrote:

> Hi, I'm in a bit of a bind reading System log print events.  99% of the
> events read fine with win32evtlogutil.SafeFormatMessage(ev_obj, logtype).
> But, every now and then I get and entry with an ascii character above 128
> and SafeFormatMessage throws an error.  Is there some way to clean up those
> entry objects so they can be read?  Thanks!

Can you give details of exactly what fails, or what application is 
inserting unicode objects?  Post the complete traceback when using 


More information about the Python-list mailing list