Skip to content

AI agent skill that researches any topic across Reddit, X, YouTube, HN, Polymarket, and the web - then synthesizes a grounded summary

fix: open .env with explicit utf-8-sig encoding for Windows compat (#715)

SAI MOHANEESH6340fadf3180
diff --git a/skills/last30days/scripts/lib/env.py b/skills/last30days/scripts/lib/env.py
index d207d98f..aa73ff00 100644
--- a/skills/last30days/scripts/lib/env.py
+++ b/skills/last30days/scripts/lib/env.py
@@ -172,7 +172,7 @@ def load_env_file(path: Path) -> dict[str, str]:
return env
_check_file_permissions(path)
- with open(path, 'r') as f:
+ with open(path, 'r', encoding='utf-8-sig') as f:
for line in f:
line = line.strip()
if not line or line.startswith('#'):