mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-10-25 00:56:14 +08:00
fix csv encoding problem
This commit is contained in:
@@ -330,6 +330,8 @@ def export_all_results(path, name, fmt, datas):
|
||||
row_list.append(Record(keys, values))
|
||||
rows = RecordCollection(iter(row_list))
|
||||
content = rows.export(fmt)
|
||||
if fmt == 'csv':
|
||||
content = '\ufeff' + content
|
||||
save_to_file(path, content)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user