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
PHP docker 镜像,调用 iconv 函数报错:iconv(): Wrong charset, conversion from 'utf-8' to 'GBK' is not allowed
iconv
iconv(): Wrong charset, conversion from 'utf-8' to 'GBK' is not allowed
基础镜像是:
Alpine Linux 自带的 libiconv 库版本太低导致.
Alpine Linux
libiconv
在原有的 Dockerfile 新增两条指令:
Dockerfile
RUN apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/v3.12/community/ gnu-libiconv=1.15-r2 ENV LD_PRELOAD /usr/lib/preloadable_libiconv.so
Proper iconv
The text was updated successfully, but these errors were encountered:
No branches or pull requests
docker php iconv error
场景
PHP docker 镜像,调用
iconv
函数报错:iconv(): Wrong charset, conversion from 'utf-8' to 'GBK' is not allowed
基础镜像是:
方案
Alpine Linux
自带的libiconv
库版本太低导致.在原有的
Dockerfile
新增两条指令:参考
Proper iconv
The text was updated successfully, but these errors were encountered: