[ https://jira.codehaus.org/browse/MASSEMBLY-748?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=360998#comment-360998 ]
Hannes Kogler commented on MASSEMBLY-748: ----------------------------------------- I have also created and attached an sample project structure where you can easily reproduce the problem with the umlauts. there is one file in the src/main/resources folder of the project buildinf.playground calling "Artikel mit größerer Nachfrage.REP". This file, and some others, get packaged into a new zip file using the CP850. Everything looks ok. But when you try to extract it using an assembly descriptor (also provided in the sample package) the umlauts are away again... :-( Very interesting is the fact, that if you go the other way round, it works. Meaning DON'T use the CP850 on creating the zip file first, which results in a wrong looking zip file. And then the maven-assembly-plugin can extract it correctly where suddenly the umlauts are correct extracted. (you can reproduce this way by using the maven profile "otherWay" of the sample package) *What I request is a way, where I can produce good looking zip files with correct file name umlauts on the one hand and a correct extraction where the umlauts won't be changed on the other hand.* > problem to extract zip files including file names with umlauts > -------------------------------------------------------------- > > Key: MASSEMBLY-748 > URL: https://jira.codehaus.org/browse/MASSEMBLY-748 > Project: Maven Assembly Plugin > Issue Type: Bug > Components: maven-archiver > Affects Versions: 2.5.3 > Environment: > Reporter: Hannes Kogler > Attachments: encoding_problem_on_zip_extract.7z > > > Like in an other issue reported, you need to explicitly set the code page > CP850 to create zip packages hosting file names with correct umlauts their > names. (by using the following configuration) > <archiverConfig> > <encoding>CP850</encoding> > </archiverConfig> > After all this solution is not 100% useful, because if you extract this file > with the obiously correct umlauts in the zip, wrong chars for all umlauts > reappear. > It's strange, because if you unzip this zip file with all other zip tools > (7zip, Windows native zip support aso.) the extraction works fine. > Only using the maven-assembly-plugin the umlauts get corrupted. > (a try to set the archiverConfig with the CP850 also for the extracting > execution process of the assembly plugin just results in a bad error calling > Failed to configure archiver: > " org.codehaus.plexus.archiver.dir.DirectoryArchiver: Cannot find 'encoding' > in class org.codehaus.plexus.archiver.dir.DirectoryArchiver " ) -- This message was sent by Atlassian JIRA (v6.1.6#6162)