mirror of
https://github.com/reconurge/flowsint.git
synced 2026-07-16 00:52:35 -05:00
[PR #150] [MERGED] fix: read social enricher outputs as utf-8 #2849
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/reconurge/flowsint/pull/150
Author: @Ghraven
Created: 5/31/2026
Status: ✅ Merged
Merged: 6/2/2026
Merged by: @dextmorgn
Base:
main← Head:fix-social-enricher-output-encoding📝 Commits (1)
4e14df6fix: read social enricher outputs as utf-8📊 Changes
2 files changed (+2 additions, -2 deletions)
View changed files
📝
flowsint-enrichers/src/flowsint_enrichers/social/to_maigret.py(+1 -1)📝
flowsint-enrichers/src/flowsint_enrichers/social/to_sherlock.py(+1 -1)📄 Description
What changed
encoding="utf-8".encoding="utf-8".Problem
The social enrichers parse CLI-generated text/JSON files without specifying an encoding. On machines whose default locale is not UTF-8, usernames, platform metadata, or URLs containing non-ASCII characters can be decoded inconsistently or fail during parsing.
Before/after
Before: Sherlock and Maigret output parsing used the platform default encoding.
After: both output parsers read their files as UTF-8, matching the common encoding used by these tools and making behavior consistent across environments.
Verification
python -m py_compile flowsint-enrichers/src/flowsint_enrichers/social/to_sherlock.py flowsint-enrichers/src/flowsint_enrichers/social/to_maigret.py🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.