Skip to content

Commit

Permalink
fix bug when reading csv with Microsoft Excel
Browse files Browse the repository at this point in the history
  • Loading branch information
zfb132 authored Sep 22, 2023
1 parent ea7c2c2 commit 8803585
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion batch_work.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def save_qrcode(self, path, qrcode, is_log=False):
else:
name = join(path, "qrcode.csv")
flag = False
with open(name, "a", encoding="utf8") as f:
with open(name, "a", encoding="utf-8-sig", errors="replace") as f:
for single_res in qrcode:
if single_res is None:
continue
Expand Down

0 comments on commit 8803585

Please sign in to comment.