Open
Description
Test-Case:
php -d error_reporting=22527 -d display_errors=1 -r 'var_dump(iconv("UTF-8", "UTF-8//IGNORE", "This is the Euro symbol '\''€'\''."));'
output:
Notice: iconv(): Wrong charset, conversion from
UTF-8' to UTF-8//IGNORE' is not allowed in Command line code on line 1
So I customized the dockerfile to:
FROM prooph/php:7.1-fpm-opcache
RUN apk add gnu-libiconv --update-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing/ --allow-untrusted
ENV LD_PRELOAD /usr/lib/preloadable_libiconv.so php
Let's test this:
output:
string(30) "This is the Euro symbol '€'."
Metadata
Metadata
Assignees
Labels
No labels