fix: read social enricher outputs as utf-8

This commit is contained in:
Ghraven
2026-06-01 00:32:48 +08:00
parent 249374e6d7
commit 4e14df6c61
2 changed files with 2 additions and 2 deletions

View File

@@ -53,7 +53,7 @@ class MaigretEnricher(Enricher):
return results
try:
with open(output_file, "r") as f:
with open(output_file, "r", encoding="utf-8") as f:
raw_data = json.load(f)
except Exception as e:
Logger.error(

View File

@@ -63,7 +63,7 @@ class SherlockEnricher(Enricher):
continue
found_accounts = {}
with open(output_file, "r") as f:
with open(output_file, "r", encoding="utf-8") as f:
for line in f:
line = line.strip()
if line and line.startswith("http"):