[Files] Sanitise Assignment titles on input

Problem statement:

When pasting assignment titles from internally generated documents (typically word), special characters like the em-dash are not sanitised, leading to gradebook export display issues.

Proposed solution:

Sanitise all title inputs on submission, to prevent non-formatted text outputs (like the CSV Gradebook export) from attempting to display nonstandard character encodings. This has lead to several instances that I've escalated to engineering where the gradebook export cannot be reimported, and throws an error. Viewing the file shows nonstandard characters and CR/LR characters that are not stripped from the originating source preventing display in excel, and sometimes precluding reupload when not modified.

User role(s):

admin,instructor

8 Comments
Mikee
Community Participant
Author

Screen Shot 2022-10-21 at 9.53.35 am.jpg

and here it is as displayed in the subject web view:
Screen Shot 2022-10-21 at 10.23.03 am.jpg

KristinL
Community Team
Community Team
Status changed to: Open
 
Mikee
Community Participant
Author

Screenshot 2022-11-01 at 12.01.06 pm.jpg

 

Might be an idea to filter "inappropriate emoji" here as well... 

KristinL
Community Team
Community Team
Status changed to: New
 
KristinL
Community Team
Community Team
Status changed to: Added to Theme
 
nathanatkinson
Community Team
Community Team
Status changed to: New
 
nathanatkinson
Community Team
Community Team
Status changed to: New
 
nathanatkinson
Community Team
Community Team
Status changed to: Open