You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "bdupont (JIRA)" <ji...@apache.org> on 2009/11/17 11:22:39 UTC
[jira] Created: (COMPRESS-90) French accent
French accent
-------------
Key: COMPRESS-90
URL: https://issues.apache.org/jira/browse/COMPRESS-90
Project: Commons Compress
Issue Type: Bug
Affects Versions: 1.1
Environment: windows XP
Reporter: bdupont
I have a zip file containing files with names containing accents like é or è (à, ...)
When extracting the namefile from a ZipArchiveEntry (zae.getName() ), it shows � in place of accents
Thanks in advance,
Ben
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (COMPRESS-90) French accent
Posted by "bdupont (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COMPRESS-90?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12778851#action_12778851 ]
bdupont commented on COMPRESS-90:
---------------------------------
I'm doing that (tried every combination) but still no right display :
ZipArchiveInputStream zais = new ZipArchiveInputStream(new FileInputStream(fci.getFile()), "UTF-8", false );
� la plage.txt
�phith�te.txt
�t�.txt
ZipArchiveInputStream zais = new ZipArchiveInputStream(new FileInputStream(fci.getFile()), null, true );
... la plage.txt
‚phithŠte.txt
‚t‚.txt
ZipArchiveInputStream zais = new ZipArchiveInputStream(new FileInputStream(fci.getFile()), "ISO-8859-1", true );
la plage.txt 0 B 0 B
phithte.txt 0 B 0 B
t.txt
> French accent
> -------------
>
> Key: COMPRESS-90
> URL: https://issues.apache.org/jira/browse/COMPRESS-90
> Project: Commons Compress
> Issue Type: Bug
> Affects Versions: 1.1
> Environment: windows XP
> Reporter: bdupont
> Attachments: demo.zip
>
>
> I have a zip file containing files with names containing accents like é or è (à, ...)
> When extracting the namefile from a ZipArchiveEntry (zae.getName() ), it shows � in place of accents
> Thanks in advance,
> Ben
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (COMPRESS-90) French accent
Posted by "Julien Aymé (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COMPRESS-90?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12778814#action_12778814 ]
Julien Aymé commented on COMPRESS-90:
-------------------------------------
Did you try setting the encoding in your ZipArchiveInputStream ?
See ZipArchiveInputStream(InputStream inputStream, String encoding, boolean useUnicodeExtraFields) constructor.
Try null to use the platform default encoding, or ISO-8859-1or UTF-8 to read french accent.
I hope this helps,
Regards,
Julien
> French accent
> -------------
>
> Key: COMPRESS-90
> URL: https://issues.apache.org/jira/browse/COMPRESS-90
> Project: Commons Compress
> Issue Type: Bug
> Affects Versions: 1.1
> Environment: windows XP
> Reporter: bdupont
> Attachments: demo.zip
>
>
> I have a zip file containing files with names containing accents like é or è (à, ...)
> When extracting the namefile from a ZipArchiveEntry (zae.getName() ), it shows � in place of accents
> Thanks in advance,
> Ben
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Issue Comment Edited: (COMPRESS-90) French accent
Posted by "bdupont (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COMPRESS-90?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12778851#action_12778851 ]
bdupont edited comment on COMPRESS-90 at 11/17/09 1:05 PM:
-----------------------------------------------------------
I'm doing that (tried every combination) but still no right display :
ZipArchiveInputStream zais = new ZipArchiveInputStream(new FileInputStream(fci.getFile()), "UTF-8", false );
� la plage.txt
�phith�te.txt
�t�.txt
ZipArchiveInputStream zais = new ZipArchiveInputStream(new FileInputStream(fci.getFile()), null, true );
... la plage.txt
‚phithŠte.txt
‚t‚.txt
ZipArchiveInputStream zais = new ZipArchiveInputStream(new FileInputStream(fci.getFile()), "ISO-8859-1", true );
... la plage.txt 0 B 0 B
‚phithŠte.txt 0 B 0 B
‚t‚.txt
Thanks for the answer,
Ben
was (Author: bdupont):
I'm doing that (tried every combination) but still no right display :
ZipArchiveInputStream zais = new ZipArchiveInputStream(new FileInputStream(fci.getFile()), "UTF-8", false );
� la plage.txt
�phith�te.txt
�t�.txt
ZipArchiveInputStream zais = new ZipArchiveInputStream(new FileInputStream(fci.getFile()), null, true );
... la plage.txt
‚phithŠte.txt
‚t‚.txt
ZipArchiveInputStream zais = new ZipArchiveInputStream(new FileInputStream(fci.getFile()), "ISO-8859-1", true );
la plage.txt 0 B 0 B
phithte.txt 0 B 0 B
t.txt
> French accent
> -------------
>
> Key: COMPRESS-90
> URL: https://issues.apache.org/jira/browse/COMPRESS-90
> Project: Commons Compress
> Issue Type: Bug
> Affects Versions: 1.1
> Environment: windows XP
> Reporter: bdupont
> Attachments: demo.zip
>
>
> I have a zip file containing files with names containing accents like é or è (à, ...)
> When extracting the namefile from a ZipArchiveEntry (zae.getName() ), it shows � in place of accents
> Thanks in advance,
> Ben
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (COMPRESS-90) French accent
Posted by "Stefan Bodewig (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COMPRESS-90?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stefan Bodewig resolved COMPRESS-90.
------------------------------------
Resolution: Not A Problem
the default encoding used by many native ZIP applications is Codepage 437 and in fact your ZIP archive uses it.
Try cp437 as encoding and you should get your accented characters decoded properly.
> French accent
> -------------
>
> Key: COMPRESS-90
> URL: https://issues.apache.org/jira/browse/COMPRESS-90
> Project: Commons Compress
> Issue Type: Bug
> Affects Versions: 1.1
> Environment: windows XP
> Reporter: bdupont
> Attachments: demo.zip
>
>
> I have a zip file containing files with names containing accents like é or è (à, ...)
> When extracting the namefile from a ZipArchiveEntry (zae.getName() ), it shows � in place of accents
> Thanks in advance,
> Ben
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (COMPRESS-90) French accent
Posted by "bdupont (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COMPRESS-90?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
bdupont updated COMPRESS-90:
----------------------------
Attachment: demo.zip
> French accent
> -------------
>
> Key: COMPRESS-90
> URL: https://issues.apache.org/jira/browse/COMPRESS-90
> Project: Commons Compress
> Issue Type: Bug
> Affects Versions: 1.1
> Environment: windows XP
> Reporter: bdupont
> Attachments: demo.zip
>
>
> I have a zip file containing files with names containing accents like é or è (à, ...)
> When extracting the namefile from a ZipArchiveEntry (zae.getName() ), it shows � in place of accents
> Thanks in advance,
> Ben
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.