I am trying to write an archiver in java that creates TAR or ZIP archives with the correct names for the Cyrillic files, then it opens in linux. On Windows, I use org.apache.tools.zip, from ant:
ZipOutputStream.setEncoding("cp866");
to get it, but the movie file (archive manager) on Linux does not understand it. In the org.apache.tools.tar method, setEncoding () does not exist. I also try to use some other encoding that supports Cyrillic, such as cp1251, utf-8, koi-8r, but does not give a result.
source
share