Skip to content

Commit

Permalink
Add support for utf-8 BOM for csvs - EDLY-6930 (#564)
Browse files Browse the repository at this point in the history
Co-authored-by: Taimoor  Ahmed <[email protected]>
  • Loading branch information
taimoor-ahmed-1 and Taimoor Ahmed authored Jul 11, 2024
1 parent c48933b commit ce45bb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lms/djangoapps/instructor_task/tasks_helper/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def _get_csv_file_content(csv_file):
content = csv_file

if isinstance(content, bytes):
csv_content = content.decode('utf-8')
csv_content = content.decode('utf-8-sig')
else:
csv_content = content

Expand Down

0 comments on commit ce45bb4

Please sign in to comment.