Uploaded image for project: 'Commons Compress'
  1. Commons Compress
  2. COMPRESS-638

The GzipCompressorOutputStream#writeHeader() uses ISO_8859_1 to write the file name and comment. If the strings contains non-ISO_8859_1 characters, unknown characters are displayed after decompression. Use percent encoding for non ISO_8859_1 characters.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.23.0
    • None
    • None

    Description

      The GzipCompressorOutputStream#writeHeader method uses the ISO_8859_1 to write the file name. 
      If the file name contains non-ISO_8859_1 characters, some unknown characters are displayed after decompression.
       Can change the ISO_8859_1 to UTF-8? 
              if (filename != null)

      {             out.write(filename.getBytes(ISO_8859_1));             out.write(0);         }

       

       

      Attachments

        1. 0110.png
          5 kB
          Radar wen

        Activity

          People

            Unassigned Unassigned
            Radar Radar wen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: