Skip to content

Commit

Permalink
Support for CSVs with BOM
Browse files Browse the repository at this point in the history
  • Loading branch information
jake authored and jake committed Aug 27, 2024
1 parent a47d6ea commit c578552
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internetarchive/cli/ia_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def main(argv: dict, session: session.ArchiveSession) -> None:
if args['--spreadsheet']:
if not args['--priority']:
args['--priority'] = -5
with open(args['--spreadsheet'], newline='', encoding='utf-8') as csvfp:
with open(args['--spreadsheet'], newline='', encoding='utf-8-sig') as csvfp:
spreadsheet = csv.DictReader(csvfp)
responses = []
for row in spreadsheet:
Expand Down

0 comments on commit c578552

Please sign in to comment.