将带中文文件名的压缩文件上传到服务器,使用unzip解压后,文件名乱码:html
临时解决方法:服务器
经过unzip行命令解压,指定字符集unzip -O CP936 xxx.zip (用GBK, GB18030也能够),能够经过man unzip查看该选项的说明。post
永久生效方法:url
在环境变量中,指定unzip参数,老是以指定的字符集显示和解压文件/etc/environment中加入2行htm
UNZIP="-O CP936"blog
ZIPINFO="-O CP936"ip