Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-20486

Textual attachments are served in UTF8 even if encoded differently

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 14.4.6
    • Old Core
    • None
    • Unknown

    Description

      Steps to reproduce

      • Create page and attach to it a textual file encoded in ISO-8859-15 such as this one: test-iso-8859-15.txt
      • Visit attachment URL

      Actual result

      The file content is displayed with invalid characters (see text.png) because its content type is set to UTF8 in the response (as shown in the response content-type header: content-type: text/plain;charset=UTF-8) while it is encoded in ISO-8859-1. When using a file encoded in UTF8, its content is displayed correctly.

      Attachments

        Activity

          People

            Unassigned Unassigned
            slauriere slauriere
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: