Hello
I copy/pasted your 3rd example about reading events. It works sometimes, but I hit this encoding issue, most likely some event encoded in ISO-8859...
Traceback (most recent call last):
File "C:/Users/Administrateur/Desktop/python_test.py", line 55, in <module>
for event in query:
File "C:\Python36\lib\site-packages\winevt\EventLog\Query.py", line 70, in __next__
logger.error(get_last_error())
File "C:\Python36\lib\site-packages\winevt\__init__.py", line 64, in get_last_error
return ffi.string(ffi.cast("char **",buf)[0][0:chars]).decode('utf-8').strip("\r\n")
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 8: invalid continuation byte
Reading your code, there's no option to change encoding if needed, might be a good idea ?
Hello
I copy/pasted your 3rd example about reading events. It works sometimes, but I hit this encoding issue, most likely some event encoded in ISO-8859...
Reading your code, there's no option to change encoding if needed, might be a good idea ?