fix: read YAML templates as UTF-8

This commit is contained in:
Ghraven
2026-06-13 22:47:15 +08:00
parent 3885f8b4d1
commit 38c7a72cb1

View File

@@ -109,7 +109,7 @@ def sanitize_url_component(value: str) -> str:
class YamlLoader:
@staticmethod
def load_enricher_yaml(filename: str) -> dict[str, Any] | yaml.YAMLError:
with open(filename) as stream:
with open(filename, encoding="utf-8") as stream:
try:
return yaml.safe_load(stream)
except yaml.YAMLError as exc: