Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

Use UTF-8 encoding for Windows users.

BillSchumacher1b128a1ef043
diff --git a/scripts/file_operations.py b/scripts/file_operations.py
index 1b87cc2896..c6066ef930 100644
--- a/scripts/file_operations.py
+++ b/scripts/file_operations.py
@@ -24,7 +24,7 @@ def read_file(filename):
"""Read a file and return the contents"""
try:
filepath = safe_join(working_directory, filename)
- with open(filepath, "r") as f:
+ with open(filepath, "r", encoding='utf-8') as f:
content = f.read()
return content
except Exception as e: