-
Notifications
You must be signed in to change notification settings - Fork 203
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 problem in containers #2052
Comments
Seems to be an iconv issue in Alpine Linux. Similar issues: |
The magic of multiple implementations... Do we really need these cast? |
ISO-8859-11 is a typo, this should read ISO-8859-1. But this shouldn't really matter and not be related to your issue. As far as I can remember, casting takes place as some browsers have issues with UTF-8. Problem is that RFC 2183 required only US-ASCII, and not all browsers understand encodings as of RFC5987. Please don't ask which versions might be affected, some googling shows that at least Safari used to be. |
This is currently the only direct use of Currently there is at least one more use of So while replacing this single |
Of course not the problem of Director, just want to make sure if we really need the iconv statement here. |
@lazyfrosch: did you dig deeper into this issue? As far as I understood, this happens because of PHP binaries compiled in a "rough" way. Is that assumption true? Any idea of how to detect this issue via PHP application code? It doesn't feel good to know that there might be installations with half-broken iconv out there. Director should warn everybody running it in such an environment. Additional input on this issue would be highly appreciated! |
The problem seems to be that iconv in musl is not implemented to support that conversion, when using GNU iconv it works. This change helps my problem: I don't need any further investigation. |
iconv(): Wrong charset, conversion from `utf-8' to `utf-8//IGNORE' is not allowed Fixes #8 See Icinga/icingaweb2-module-director#2052
Expected Behavior
Download should work.
Current Behavior
When downloading an Basket, it fails by showing HTML as text/plain in the browser, listing the exception:
This code causes it:
icingaweb2-module-director/application/controllers/BasketController.php
Lines 179 to 187 in 606d715
I'm not sure why we are casting to ISO-8859-1 here, but it seems to fail on some platforms.
Steps to Reproduce (for bugs)
For now I use php on Alpine in lazyfrosch/icingaweb2
Your Environment
The text was updated successfully, but these errors were encountered: