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

iconv ASCII//TRANSLIT invalid argument #1495

Open
louismariegaborit opened this issue Feb 19, 2024 · 2 comments
Open

iconv ASCII//TRANSLIT invalid argument #1495

louismariegaborit opened this issue Feb 19, 2024 · 2 comments

Comments

@louismariegaborit
Copy link

With php:8.3-fpm-alpine image, I encountered an error when using iconv with TRANSLIT argument.

echo é | iconv -f UTF-8 -t ASCII//TRANSLIT
iconv: destination charset ASCII//TRANSLIT: Invalid argument

On Ubuntu with iconv 2.35, this command works correctly.

@tianon
Copy link
Member

tianon commented Feb 20, 2024

I think this is probably better suited to an Alpine/musl specific forum, as it's not really related to PHP (and is likely more about musl not really having full locale support: https://wiki.musl-libc.org/open-issues)

@LaurentGoderre
Copy link
Member

Manually downgrading libiconv seems to solve the issue

/var/www/html # apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/v3.12/community/ gnu-libiconv=1.15-r2
OK: 21 MiB in 37 packages
/var/www/html # echo é | iconv -f UTF-8 -t ASCII//TRANSLIT
'e

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

No branches or pull requests

3 participants