[jira] [Commented] (COMPRESS-168) getName of ZipArchiveEntry

2012-08-06 Thread Jing Li (JIRA)

[ 
https://issues.apache.org/jira/browse/COMPRESS-168?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13429907#comment-13429907
 ] 

Jing Li commented on COMPRESS-168:
--

I also got this problem. Here was the code I used :

 ArchiveInputStream in = new 
ArchiveStreamFactory().createArchiveInputStream(inputStream);
 It also got the wrong fileName when calling in.getNextEntry()

 getName of ZipArchiveEntry
 --

 Key: COMPRESS-168
 URL: https://issues.apache.org/jira/browse/COMPRESS-168
 Project: Commons Compress
  Issue Type: Bug
  Components: Archivers
Affects Versions: 1.2
 Environment: J2EE Environment with jdk 1.4
Reporter: Pavithra Kumar
 Attachments: TestZip.zip


 getName method of ZipArchiveEntry is not giving arabic file names. Instead of 
 that it gives some chunked characters.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (COMPRESS-168) getName of ZipArchiveEntry

2012-08-06 Thread Stefan Bodewig (JIRA)

[ 
https://issues.apache.org/jira/browse/COMPRESS-168?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13429941#comment-13429941
 ] 

Stefan Bodewig commented on COMPRESS-168:
-

Like I said earlier, if your archive is created by Window's compressed folders 
you will need to know the platform encoding used on the machine that generated 
the archive and explicitly specify it.  Commons Compress' trunk allows you to 
set the filename encoding at the ArchiveStreamFactory level but for any 
released version you'll have to use ZipArchiveInputStream (or ZipFile) directly.

 getName of ZipArchiveEntry
 --

 Key: COMPRESS-168
 URL: https://issues.apache.org/jira/browse/COMPRESS-168
 Project: Commons Compress
  Issue Type: Bug
  Components: Archivers
Affects Versions: 1.2
 Environment: J2EE Environment with jdk 1.4
Reporter: Pavithra Kumar
 Attachments: TestZip.zip


 getName method of ZipArchiveEntry is not giving arabic file names. Instead of 
 that it gives some chunked characters.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (COMPRESS-168) getName of ZipArchiveEntry

2011-12-22 Thread Stefan Bodewig (Commented) (JIRA)

[ 
https://issues.apache.org/jira/browse/COMPRESS-168?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13174900#comment-13174900
 ] 

Stefan Bodewig commented on COMPRESS-168:
-

Any news?

 getName of ZipArchiveEntry
 --

 Key: COMPRESS-168
 URL: https://issues.apache.org/jira/browse/COMPRESS-168
 Project: Commons Compress
  Issue Type: Test
  Components: Archivers
Affects Versions: 1.2
 Environment: J2EE Environment with jdk 1.4
Reporter: Pavithra Kumar
 Attachments: TestZip.zip


 getName method of ZipArchiveEntry is not giving arabic file names. Instead of 
 that it gives some chunked characters.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (COMPRESS-168) getName of ZipArchiveEntry

2011-12-14 Thread Stefan Bodewig (Commented) (JIRA)

[ 
https://issues.apache.org/jira/browse/COMPRESS-168?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13169412#comment-13169412
 ] 

Stefan Bodewig commented on COMPRESS-168:
-

Windows compressed folders facility seems to use the platform's native encoding 
when creating ZIPs.
See http://commons.apache.org/compress/zip.html#encoding

Do you get correct file names if you use something like

new ZipFile(zipname, ENCODING)

where ENCODING is whatever Java calls you platform's native encoding. I don't 
have any idea what that
would be and wouldn't recognize correct arabic characters either so I didn't 
try it myself on your
test archive.  One list I know of is 
http://docs.oracle.com/javase/1.5.0/docs/guide/intl/encoding.doc.html and 
ISO8859_6 or Cp1256 don't sound bad (but you probably know better than me).

 getName of ZipArchiveEntry
 --

 Key: COMPRESS-168
 URL: https://issues.apache.org/jira/browse/COMPRESS-168
 Project: Commons Compress
  Issue Type: Test
  Components: Archivers
Affects Versions: 1.2
 Environment: J2EE Environment with jdk 1.4
Reporter: Pavithra Kumar
 Attachments: TestZip.zip


 getName method of ZipArchiveEntry is not giving arabic file names. Instead of 
 that it gives some chunked characters.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (COMPRESS-168) getName of ZipArchiveEntry

2011-12-12 Thread Stefan Bodewig (Commented) (JIRA)

[ 
https://issues.apache.org/jira/browse/COMPRESS-168?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13167454#comment-13167454
 ] 

Stefan Bodewig commented on COMPRESS-168:
-

Where does the ZipArchiveE (do you create it yourself or read it from a ZipFile 
or
a ZipArchiveInputStream)?

If you have read it from somewhere, is there any chance you could provide a 
small
sample archive that doesn't work for you?


 getName of ZipArchiveEntry
 --

 Key: COMPRESS-168
 URL: https://issues.apache.org/jira/browse/COMPRESS-168
 Project: Commons Compress
  Issue Type: Test
  Components: Archivers
Affects Versions: 1.2
 Environment: J2EE Environment with jdk 1.4
Reporter: Pavithra Kumar

 getName method of ZipArchiveEntry is not giving arabic file names. Instead of 
 that it gives some chunked characters.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (COMPRESS-168) getName of ZipArchiveEntry

2011-12-12 Thread Pavithra Kumar (Commented) (JIRA)

[ 
https://issues.apache.org/jira/browse/COMPRESS-168?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13168102#comment-13168102
 ] 

Pavithra Kumar commented on COMPRESS-168:
-

public static void main(String args[]){
try{
String zipname = D:\\Pavis\\TestUnZip\\TestZip.zip;
ZipFile zFile = new ZipFile(zipname);
Enumeration en = zFile.getEntries();
long i = 0;
while(en.hasMoreElements()){
i += 1;
ZipArchiveEntry zEntry = (ZipArchiveEntry)en.nextElement();
System.out.println(zEntry.getName());
FileOutputStream fout = new 
FileOutputStream(D:\\Pavis\\TestUnZip\\ + i + .jpg);
InputStream is = zFile.getInputStream(zEntry);
for (int c = is.read(); c != -1; c = is.read()) {
fout.write(c);
}
is.close();
fout.close();
}
}
catch(Exception e){
e.printStackTrace();
}
}

When I debug I can see the object of ZipArchiveEntry has a different filename 
for arabic files. 

 getName of ZipArchiveEntry
 --

 Key: COMPRESS-168
 URL: https://issues.apache.org/jira/browse/COMPRESS-168
 Project: Commons Compress
  Issue Type: Test
  Components: Archivers
Affects Versions: 1.2
 Environment: J2EE Environment with jdk 1.4
Reporter: Pavithra Kumar
 Attachments: TestZip.zip


 getName method of ZipArchiveEntry is not giving arabic file names. Instead of 
 that it gives some chunked characters.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira