commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "C. Grobmeier" <grobme...@possessed.de>
Subject Re: commons-compress
Date Mon, 27 Feb 2006 16:52:37 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Antoine,

> I have filenames with special characters (French accents) to compress
> (base zip format), I set the encoding as UTF-8 but my filenames are
> getting wrong in the archive.

i just checked the code and it looks like the setEncoding/getEndcoding
methods are just used to get the correct filenames from the harddisk.
It's not implemented for naming the files within the zip-file.

I think its a good thing to have a new issue about this in bugzilla.
If you don't open it, i will do later.

At the moment i am afraid i have no solution for this.

Regards,
Chris

> Here is how I init my stream
> zos = new ZipOutputStream(new FileOutputStream(file));
> zos.setEncoding("utf-8");
> zos.setMethod(zos.DEFLATED);
> zos.setLevel(5);


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD4DBQFEAy5Vkv8rKBUE/T4RAlYhAJUalE2gBb2J9kkOtr9kyaInCN5FAKCEwgq0
13l3BQxcDHsj/Pe+DR36aw==
=WGQL
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message