Solving Chinese garbled code in Java compressed file
Introducing Maven dependency
<dependency>
<groupId>ant</groupId>
<artifactId>ant</artifactId>
<version>1.6.5</version>
</dependency>
Click here to view all versions of ant on Maven’s official website
Using ant.jar class in ant
import org.apache.tools.zip.ZipEntry;
import org.apache.tools.zip.ZipOutputStream;
Replace the class in JDK API
import java.util.zip.ZipEntry;
import java.util.zip.ZipOutputStream;
Read More:
- Solving the problem of Chinese garbled code in qtring
- Solution of Chinese display garbled code in Git Bash
- Solve the problem of Chinese garbled code of actibpm plug-in in idea
- Python – [encoding] in Python os.system Solution to Chinese garbled code when calling CMD command
- Solution of Chinese garbled code when using QT
- Chinese garbled fonts in win10 English system
- Solution to the problem of Chinese garbled in gradle console in idea
- After Oracle 11g is installed, SQL_ Plus.exe The problem of Chinese garbled in command window
- Chinese garbled code when vscode calls CMD to run C / C + +
- The problem of Chinese garbled data in MySQL
- Resttemplate Chinese garbled problem – available
- Solve the problem of using logback console to print log Chinese characters in IDEA as garbled characters
- Configuring OpenGL in Chinese version of VS2010 and problem solving
- Anaconda Matplotlib drawing Chinese garbled solution
- In the XML configuration file of spring jdbc.properties The connection to the database failed due to garbled code
- Solution to garbled code problem after importing project in eclipse
- Java was started but returned exit code = 13 problem solving
- After Java application is deployed in Linux environment, Chinese is displayed as square solution
- Solve the error of Chinese file uploaded by springboot
- Solve xshell garbled code