You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Radar wen (Jira)" <ji...@apache.org> on 2023/01/10 01:43:00 UTC
[jira] [Created] (COMPRESS-638) 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.
Radar wen created COMPRESS-638:
----------------------------------
Summary: 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.
Key: COMPRESS-638
URL: https://issues.apache.org/jira/browse/COMPRESS-638
Project: Commons Compress
Issue Type: Bug
Reporter: Radar wen
Attachments: 0110.png
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. !0110.png!
Can change the ISO_8859_1 to UTF-8?
if (filename != null) {
out.write(filename.getBytes(ISO_8859_1));
out.write(0);
}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)