Bank name encoding

My launch of maven creates different files in the destination directory and compresses them in a jar file.

In case there are special characters in the names , such as , the file names in the jar archive are incorrectly encoded and displayed as . (The contents of the file are not affected) Ü├£

Since the files are displayed correctly in the destination directory, the problem should be caused by maven jar: jar.

Interestingly, if I use the unzip command on Linux, the files are extracted with the correct name; if I use Windows Explorer or 7zip on Windows, the names are incorrect.

+2
source share
1 answer

, maven-war-plugin , , maven jar

        <plugin>
            <artifactId>maven-war-plugin</artifactId>
            <version>3.0.0</version>
            <configuration>
                <attachClasses>true</attachClasses>
                <classesClassifier>classes</classesClassifier>
            </configuration>
        </plugin>
    </plugins>
0

Source: https://habr.com/ru/post/1657802/


All Articles