Skip to content

Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.

Fix encoding issue when loading YAML file (#1316)

Arthur Chien405650840e9c
diff --git a/src/crewai/project/crew_base.py b/src/crewai/project/crew_base.py
index 67e85f91b..4c9bbabed 100644
--- a/src/crewai/project/crew_base.py
+++ b/src/crewai/project/crew_base.py
@@ -35,7 +35,7 @@ def CrewBase(cls):
@staticmethod
def load_yaml(config_path: Path):
try:
- with open(config_path, "r") as file:
+ with open(config_path, "r", encoding="utf-8") as file:
return yaml.safe_load(file)
except FileNotFoundError:
print(f"File not found: {config_path}")