From bd345d4c19137ffad5bedfc62a22cec8f2629709 Mon Sep 17 00:00:00 2001 From: Terrance DeJesus <99630311+terrancedejesus@users.noreply.github.com> Date: Thu, 11 Jul 2024 18:07:14 -0400 Subject: [PATCH] [Bug] Hunting - Add UTF-8 Encoding for all Read and Write Operations (#3886) * adding utf-8 flags * reverted open() to read_text with encoding flag * changed ticks * changed ticks --- hunting/generate_markdown.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hunting/generate_markdown.py b/hunting/generate_markdown.py index 20a0683adbe..9db91cced45 100644 --- a/hunting/generate_markdown.py +++ b/hunting/generate_markdown.py @@ -50,7 +50,7 @@ def load_all_toml(base_path: Path) -> List[tuple[Hunt, Path]]: """Load all TOML files from the directory and return a list of Hunt configurations and their paths.""" hunts = [] for toml_file in base_path.rglob("*.toml"): - hunt_config = load_toml(toml_file.read_text()) + hunt_config = load_toml(toml_file.read_text(encoding="utf-8")) hunts.append((hunt_config, toml_file)) return hunts