Linux下unzip乱码解决方案
来源:互联网 发布:知无涯者百度云资源 编辑:程序博客网 时间:2024/05/16 11:19
#!/usr/bin/env python# -*- coding: utf-8 -*-import osimport sysimport zipfile#print "Processing File " + sys.argv[1]file=zipfile.ZipFile(sys.argv[1],"r");for name in file.namelist(): utf8name=name.decode('gbk')# print "Extracting " + utf8name pathname = os.path.dirname(utf8name) if not os.path.exists(pathname) and pathname!= "": os.makedirs(pathname) data = file.read(name) if not os.path.exists(utf8name): fo = open(utf8name, "w") fo.write(data) fo.closefile.close()
0 0
- Linux下unzip乱码解决方案
- linux下unzip解压乱码
- python解决linux下unzip乱码问题
- 【python】解决linux下unzip乱码问题
- 解决linux下unzip中文有乱码的问题
- Linux下使用unzip解压缩中文乱码问题
- Linux下解压zip乱码问题的解决(unzip)
- Linux Ubuntu unzip 解压乱码
- Linux下ZendStudio乱码解决方案
- linux下pdf乱码解决方案
- linux下命令行乱码解决方案
- Linux下pdf乱码解决方案
- Linux下 unrar unzip 解压
- Linux下测试使用unzip
- linux 中unzip解压时中文乱码
- linux unzip解压中文乱码问题
- Linux下unzip解压windows压缩的zip件,中文名乱码问题
- Linux下mysql中文乱码解决方案
- 跟我一起写 Makefile(六)
- Debug日记输出正常,html页面乱码问题
- 【操作记录】CentOS编译安装mysql
- jdk动态代理参数理解
- POJ 3420 Quad Tiling 已被翻译
- Linux下unzip乱码解决方案
- 项目名报错,Java compiler level does not match the version of the installed Java project facet.
- 跟我一起写 Makefile(七)
- Toast的五种用法
- [LeetCode]N-Queens
- C/C++——指针目录
- java swing 学习笔记(一)
- AndroidStudio中SVN异常:Errors found while svn working copies detection. Fix it.
- PS基础操作(上)