Do not set charset of file upload to UTF-32LE or UTF-16

Description

This is a regression related to KNL-589.

To replicate on 2.8.0rc01:

1) Create local file on your desktop called asdf.txt with content of "asdf"
2) Go to course site in Sakai
3) Upload file to Resources
4) Download file

In Firefox, the file will be displayed with bad characters because the file is served as UTF-32LE. The code should be modified to use UTF-8 if the detecting chooses UTF-32LE or UTF-16.

Attachments

1

Activity

Show:

Anthony Whyte August 4, 2011 at 5:32 AM

1.1.x r96371.

Sam Ottenhoff March 17, 2011 at 11:08 AM

Thanks for the patch. Any chance for a merge into 1.2.x before the next rc?

Hudson CI Server March 16, 2011 at 11:36 PM

Integrated in kernel-trunk #281 (See http://builds.sakaiproject.org:8080/job/kernel-trunk/281/)
apply patch from Sam

David Horwitz March 16, 2011 at 11:01 PM

Patch applied thanks Sam

Sam Ottenhoff March 10, 2011 at 7:26 AM

Patch attached to force UTF-8 for any UTF-16 or UTF-32 detected

Fixed

Details

Priority

Affects versions

Fix versions

Components

Assignee

Reporter

Created March 9, 2011 at 9:37 AM
Updated April 25, 2018 at 3:19 PM
Resolved October 5, 2011 at 6:41 AM