Closed strider2038 closed 4 years ago
On which string it returns false`
/app/services/core
- this is project directory. May be it is platform dependent?
Also, there is warning
iconv(): Wrong charset, conversion from 'UTF-8' to 'ASCII//TRANSLIT//IGNORE' is not allowed
It seems to be a problem with Linux Alpine image as it mentioned here https://github.com/nunomaduro/phpinsights/issues/43#issuecomment-492204530
But what about processing of iconv result? Is there any alternatives to iconv()
? Or maybe check for false result can be added?
$converted = iconv('UTF-8', 'ASCII//TRANSLIT//IGNORE', $s);
if ($converted !== false) {
$s = $converted;
}
What is value of constant ICONV_IMPL?
value is unknown
Fixed
Thanks! It now works perfectly. When will be a release?
I think in about a week…
@dg Hello! What about a release?
Version: 3.1.1
Bug Description
iconv() https://github.com/nette/utils/blob/master/src/Utils/Strings.php#L167 returns false on some strings
Steps To Reproduce
Original bug occurs when package was updated from 3.1.0 to 3.1.1 as a dependency for Easy Coding Standards library https://github.com/symplify/symplify/issues/1787
The problem occurs on Linux Alpine Docker image.
Expected Behavior
No type error