Skip to content

armgit / camel

Public Imported from GitHub
0

🐫 CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org

解决跨系统下编码导致的乱码显示问题 (#3256)

7946qinghuanebd68a719de0
diff --git a/camel/toolkits/excel_toolkit.py b/camel/toolkits/excel_toolkit.py
index a70e858bc..f379e7755 100644
--- a/camel/toolkits/excel_toolkit.py
+++ b/camel/toolkits/excel_toolkit.py
@@ -872,7 +872,7 @@ class ExcelToolkit(BaseToolkit):
import csv
with open(
- resolved_csv_path, 'w', newline='', encoding='utf-8'
+ resolved_csv_path, 'w', newline='', encoding='utf-8-sig'
) as csvfile:
writer = csv.writer(csvfile)
writer.writerows(data)