openwebwork / webwork2

Course management front end for WeBWorK
http://webwork.maa.org/wiki/Main_Page
Other
141 stars 164 forks source link

Fix BOM removal when a classlist file is read. #2323

Closed drgrice1 closed 4 months ago

drgrice1 commented 5 months ago

This was broken when the UTF-8 encoding method was changed in #1831. Since the file contents are now UTF-8 decoded, a different regular expression is needed to match a BOM.

This replaces #2305. That pull request will be closed.

Here is the file with the BOM from that pull request for testing: https://github.com/openwebwork/webwork2/files/14039829/StudentsList_course_csv_utf-8_w_BOM.csv