| skipped 810 lines |
811 | 811 | | record_sum += len(records) |
812 | 812 | | |
813 | 813 | | if args.xmls: |
814 | | - | with open(evtx_file, "r") as fb: |
| 814 | + | with open(evtx_file, "r", encoding="utf8", errors="ignore") as fb: |
815 | 815 | | fb_header = fb.read(6) |
816 | 816 | | if "<?xml" not in fb_header: |
817 | 817 | | sys.exit("[!] This file is not XML format {0}.".format(evtx_file)) |
| skipped 1053 lines |