Uploaded image for project: 'Jira Service Management Data Center'
  1. Jira Service Management Data Center
  2. JSDSERVER-7177

Exporting objects using desired encoding always ends up with UTF-8 encoding instead.

XMLWordPrintable

      Issue Summary

      Exporting objects using desired encoding always ends up with UTF-8 encoding instead.

      Steps to Reproduce

      1. Create an asset using characters from ISO-8859-15 charset:
      2. Open object view > cog icon > Export objects
      3. Select ISO-8859-15 encoding > Export
      4. Open the file in a text editor and observe the results
      5. Run "file" command to confirm the charset:
        file -ib export.csv

      Expected Results

      • Reviewing the hexadecimal representation of the file reveals properly encoded characters. For example, character 'ä' matches its hexadecimal representation 'e4' for encoding ISO-8859-15:
      • file -bi export.csv Linux command shows the desired charset:
        $ file -I export.csv
        export.csv: text/plain; charset=iso-8859-1
        

      Actual Results

      • Reviewing the hexadecimal representation of the file reveals the same character is being encoded with UTF-8 'c3 a4':
      • file -bi export.csv Linux command shows the utf-8 charset:
        $ file -I export.csv
        export.csv: text/plain; charset=uf-8
        

      Workaround

      Reopen or import the CSV file and select desired encoding in the used program / tool.

      Notes

              c8bcca445054 Benjamin Suess
              mfilipan Marko Filipan
              Votes:
              14 Vote for this issue
              Watchers:
              20 Start watching this issue

                Created:
                Updated:
                Resolved: