Skip to content

Commit 6d96fbd

Browse files
authored
Added encoding support when reading files
This fixes scanning problems in WIndows server machines
1 parent ec48283 commit 6d96fbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hawk_scanner/internals/system.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def read_match_strings(file_path, source):
233233
print_info(f"Scanning file: {file_path}")
234234
content = ''
235235
try:
236-
with open(file_path, 'r') as file:
236+
with open(file_path, 'r', encoding="utf-8") as file:
237237
content = file.read()
238238
except Exception as e:
239239
pass

0 commit comments

Comments
 (0)