Only attempt to guess the file encoding of text or html file uploads
GENERAL
TESTING
GENERAL
TESTING
Description
This related to the regression here:
introduced code that attempts to guess the encoding of a Sakai resource.
This JIRA is a proposal to modify the code to only check the content type for file uploads. All content created in Sakai (e.g., in Resources -> New Text Document) should be UTF-8 as Sakai is a UTF-8 system.
Also, there is no reason to guess the file encoding of GIFs, ZIPs, etc. This is just wasted cycles and could be problematic in certain cases. Shouldn't we only be detecting file encoding for text and html file upploads?
This related to the regression here:
introduced code that attempts to guess the encoding of a Sakai resource.
This JIRA is a proposal to modify the code to only check the content type for file uploads. All content created in Sakai (e.g., in Resources -> New Text Document) should be UTF-8 as Sakai is a UTF-8 system.