We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
执行代码:
$fileName = iconv('UTF-8', 'gb2312', $fileName);
报错:
iconv(): Wrong charset, conversion from UTF-8' to gb2312' is not allowed
UTF-8' to
查了一下,据说是iconvlib版本太低,参考:docker-library/php#240
但是看了一下dockerfile,已经针对该问题进行处理,但是我这边还是出现上面的报错。
查看PHPinfo,显示:
iconv support | enabled iconv implementation | unknown iconv library version | unknown
The text was updated successfully, but these errors were encountered:
这是docker镜像没有这个扩展吧。可以百度一下,镜像安装这个扩展的
Sorry, something went wrong.
因为新版本的libiconv移除了preloadable_libiconv.so这个扩展包, 进入php容器,执行下面语句,然后重启容器即可 apk add gnu-libiconv=1.15-r2 --no-cache --repository http://mirrors.aliyun.com/alpine/v3.12/community
thx
No branches or pull requests
执行代码:
报错:
查了一下,据说是iconvlib版本太低,参考:docker-library/php#240
但是看了一下dockerfile,已经针对该问题进行处理,但是我这边还是出现上面的报错。
查看PHPinfo,显示:
iconv support | enabled
iconv implementation | unknown
iconv library version | unknown
The text was updated successfully, but these errors were encountered: