Skip to content
New issue

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

fix(php7.1) Fix iconv UTF-8 conversion Notice #3

Merged
merged 1 commit into from
Mar 10, 2021
Merged

Conversation

carlbastos
Copy link
Collaborator

See phpearth/docker-php#3 for further details.

You can reproduce/test by running php -a inside the php-fpm container and then executing the following function:

iconv('UTF-8', 'ASCII//TRANSLIT//IGNORE', 'šěýčíéáýřčíšýíščř');

before the fix, the following Notice will pop:

Notice: iconv(): Wrong charset, conversion from `UTF-8' to `ASCII//TRANSLIT//IGNORE' is not allowed in php shell code on line 1

after the fix, no output will be printed.

@carlbastos carlbastos self-assigned this Mar 10, 2021
@carlbastos carlbastos merged commit 4b23994 into master Mar 10, 2021
@carlbastos carlbastos deleted the iconv-fix branch March 10, 2021 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants