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