[ https://jira.codehaus.org/browse/MASSEMBLY-543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=344725#comment-344725 ]
Dmitry Pelevin commented on MASSEMBLY-543: ------------------------------------------ Markus, please try to specify encoding for assembly plugin in the following way (also do not forget about "-Dfile.encoding=UTF-8"): {code:xml} <plugin> <artifactId>maven-assembly-plugin</artifactId> <version>2.4</version> <executions> <execution> <id>make-assembly</id> <phase>package</phase> <goals> <goal>single</goal> </goals> <configuration> <descriptors> <descriptor>src/main/assembly/package-sources.xml</descriptor> <descriptor>src/main/assembly/package.xml</descriptor> </descriptors> <archiverConfig> <encoding>CP866</encoding> </archiverConfig> </configuration> </execution> </executions> <dependencies> <dependency> <groupId>org.codehaus.plexus</groupId> <artifactId>plexus-archiver</artifactId> <version>2.4.4</version> <exclusions> <exclusion> <groupId>org.codehaus.plexus</groupId> <artifactId>plexus-component-api</artifactId> </exclusion> </exclusions> </dependency> </dependencies> </plugin> {code} Let me explain why this is required. ZIP is old enought format and initialli it did not know anything about Unicode encodings. Later ZIP specification was extended and support for Unicode and LEF flag was added. The problem is that not all software understand LEF flag. I can surprise you Windows exlorer still do not understand LEF flag. As I know - there is no problems with LEF at linux and MacOS. Windows is still read ZIP assuming that it contain file names encoded with non-Unicode encoding, using MSDOS encoding corresponding to user locale. So if I want to be able to see cyrilyc file names in ZIP files at Windows I need to pack ZIP using [CP866|https://en.wikipedia.org/wiki/Code_page_866] encoding. Not sure exactly, but I think you need to use [CP850|https://en.wikipedia.org/wiki/Code_page_850] encoding to be able to see file names with symbols from german abc. In the case if you set only "-Dfile.encoding=UTF-8" flag without specifying encoding as in my example - you will be able to see "German umlauts" using archiver which understand LEF flag [7-Zip|http://7-zip.org/] is one of such archivers. I think this will solve all your problems with encoding as it did for me. > japanese filenames cannot be correctly assembled by maven-assembly-plugin > ------------------------------------------------------------------------- > > Key: MASSEMBLY-543 > URL: https://jira.codehaus.org/browse/MASSEMBLY-543 > Project: Maven Assembly Plugin > Issue Type: Bug > Environment: Windows XP SP3 Japanese, Eclipse Ganymede 3.4.2 > Reporter: Eros Sy > Attachments: 新規テキスト > ドキュメント.xml > > > I am successfully created the distribution zip file but when I add a file > which is in Japanese character file name, it is include in the zip file but > the file name was garbled. > How to reproduce: add a file to be included in the distribution which file > name is in Japanese character. i will provide a sample file. -- This message was sent by Atlassian JIRA (v6.1.6#6162)