胸毛仙人 的个人博客 / 0 / 0 / 创建于 2年前
在使用
$zipFile->openFile($filePath)->extractTo($outPath);
解压缩时,出现UTF-8错误,解决方法如下:找到文件
vendor/nelexa/zip/src/Model/ZipEntry.php
修改其中的
public function getName() { //return $this->name; return iconv('gbk', 'utf-8', $this->name); }
本作品采用《CC 协议》,转载必须注明作者和本文链接
我要举报该,理由是: