Skip to content

SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.

Fixed UnicodeDecodeError (#1723)

lojokun820f429c9245
diff --git a/sflib.py b/sflib.py
index 242f6642..36363c2b 100644
--- a/sflib.py
+++ b/sflib.py
@@ -298,7 +298,7 @@ class SpiderFoot:
return None
if cache_stat.st_mtime > time.time() - timeoutHrs * 3600 or timeoutHrs == 0:
- with open(cacheFile, "r") as fp:
+ with open(cacheFile, "r", encoding='utf-8') as fp:
return fp.read()
return None