[ 
https://jira.codehaus.org/browse/MASSEMBLY-748?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=361647#comment-361647
 ] 

Kristian Rosenvold commented on MASSEMBLY-748:
----------------------------------------------

You may note that as of assembly-plugin 2.5 we switched to "proper" utf-8 
handling as default. 

When I test your project, if I remove stanza 

<archiverConfig>
<encoding>CP850</encoding>
</archiverConfig>

entirely I get a well-formed zip file with UTF-8. This file will read correctly 
with most modern zip tools. Windows compressed folders will not understand 
this. If you intend to support full unicode you must make windows-users install 
a proper zip client

> 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
>            Assignee: Kristian Rosenvold
>             Fix For: 2.5.4
>
>         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)

Reply via email to