ZIP file uncompressing method for solving filename messy code problem

The invention provides a ZIP file uncompressing method for solving a filename messy code problem. The ZIP file uncompressing method comprises the following steps that target codes are determined according to codes of a character set used in a current operating system; a filename is extracted; source codes are determined according to the extracted filename; if the source codes are different from the target codes, a filename meeting an encoding rule of the source codes is converted to a filename meeting an encoding rule of the target codes; if the source codes are identical with the target codes, the filename is not converted; a file is created in a storage module using the converted filename; file data are extracted from a compressed file content source data area of a ZIP file and written into the created file; the steps are repeated until all files in the ZIP file are uncompressed. Through code converting of the filenames, filenames of files in a package can be converted to filenames which meet the encoding rule of the target codes, and the messy code problem in the ZIP file uncompressing process is solved.