Article View: borland.public.jbuilder.java.api
Article #1264Re: about ZipOutputStream and chinese string file name
From: John McGrath TeamB
Date: Tue, 19 Mar 2002 08:22
Date: Tue, 19 Mar 2002 08:22
21 lines
1596 bytes
1596 bytes
On Tue, 19 Mar 2002 14:29:08 +0800, liying wrote:
> I am a begginer of java. I wrote a grogram to compress some files
> into a ZIP archive via the "ZipOutputStream" and it work well.
> But i found a strange thing that when i add a file named with a
> chinese string into the zip archive, the file name in the archive
> will be confused.
I suspect that the ZIP file format only supports 8-bit characters in
file names. I just tried to create an archive containing extended
characters using WinZip, and it fails.
--
Regards,
John McGrath [TeamB]
---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<MPG.1700bea2f53454e298b47f@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.maxwell.syr.edu!out.nntp.be!propagator-SanJose!in.nntp.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnewsReferences:
<3c96db19$1_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,407313dbc3f89471 X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2002-03-19 00:32:51 PST From: John McGrath [TeamB] <ng-b@JPMcGrath.net> Newsgroups: borland.public.jbuilder.java.api Subject: Re: about ZipOutputStream and chinese string file name Date: Tue, 19 Mar 2002 03:22:22 -0500 Message-ID: <MPG.1700bea2f53454e298b47f@newsgroups.borland.com> References: <3c96db19$1_1@dnews> X-Newsreader: MicroPlanet Gravity v2.60 NNTP-Posting-Host: 209.92.40.60 X-Trace: dnews 1016526143 209.92.40.60 (19 Mar 2002 00:22:23 -0800) Lines: 21 X-Authenticated-User: jpmcgrath Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.maxwell.syr.edu!out.nntp.be!propagator-SanJose!in.nntp.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews