Skip to content

Commit ebd68a7

Browse files
解决跨系统下编码导致的乱码显示问题 (#3256)
Co-authored-by: Wendong-Fan <133094783+Wendong-Fan@users.noreply.github.com>
1 parent 985eccf commit ebd68a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

camel/toolkits/excel_toolkit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,7 @@ def export_sheet_to_csv(self, sheet_name: str, csv_filename: str) -> str:
872872
import csv
873873

874874
with open(
875-
resolved_csv_path, 'w', newline='', encoding='utf-8'
875+
resolved_csv_path, 'w', newline='', encoding='utf-8-sig'
876876
) as csvfile:
877877
writer = csv.writer(csvfile)
878878
writer.writerows(data)

0 commit comments

Comments
 (0)