From 4e14df6c615c699fbc3483a17aba53d0150ffa75 Mon Sep 17 00:00:00 2001 From: Ghraven Date: Mon, 1 Jun 2026 00:32:48 +0800 Subject: [PATCH] fix: read social enricher outputs as utf-8 --- flowsint-enrichers/src/flowsint_enrichers/social/to_maigret.py | 2 +- flowsint-enrichers/src/flowsint_enrichers/social/to_sherlock.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/flowsint-enrichers/src/flowsint_enrichers/social/to_maigret.py b/flowsint-enrichers/src/flowsint_enrichers/social/to_maigret.py index a216543..97f0759 100644 --- a/flowsint-enrichers/src/flowsint_enrichers/social/to_maigret.py +++ b/flowsint-enrichers/src/flowsint_enrichers/social/to_maigret.py @@ -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( diff --git a/flowsint-enrichers/src/flowsint_enrichers/social/to_sherlock.py b/flowsint-enrichers/src/flowsint_enrichers/social/to_sherlock.py index 057d064..5e2a26b 100644 --- a/flowsint-enrichers/src/flowsint_enrichers/social/to_sherlock.py +++ b/flowsint-enrichers/src/flowsint_enrichers/social/to_sherlock.py @@ -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"):