Creating tar archive with national characters in Java
问题 Do you know some library/way in Java to generate tar archive with file names in proper windows national codepage ( for example cp1250 ). I tried with Java tar, example code: final TarEntry entry = new TarEntry( files[i] ); String filename = files[i].getPath().replaceAll( baseDir, "" ); entry.setName( new String( filename.getBytes(), "Cp1250" ) ); out.putNextEntry( entry ); ... It doesn't work. National characters are broken where I extract tar in windows. I've also found a strange thing,