Handle BOM marks
This commit is contained in:
parent
57b99d4d43
commit
46f05cfb97
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ class CSVImporter:
|
||||||
print(f"Sorry, couldn't find file: {filepath}")
|
print(f"Sorry, couldn't find file: {filepath}")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
with open(filepath, mode="r") as csv_file:
|
with open(filepath, mode="r", encoding="utf-8-sig") as csv_file:
|
||||||
# Have arg and good file path -- read in rows as dicts.
|
# Have arg and good file path -- read in rows as dicts.
|
||||||
# Header row is:
|
# Header row is:
|
||||||
# Title, Group, Task List, Created Date, Due Date, Completed, Created By, Assigned To, Note, Priority
|
# Title, Group, Task List, Created Date, Due Date, Completed, Created By, Assigned To, Note, Priority
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue