- Issue created by @gugalamaciek
- Status changed to Needs review
9 months ago 11:19am 12 March 2024 - last update
9 months ago 86 pass - Assigned to gugalamaciek
I had case, where reason phase was "D�plac� Temporairement". This resulted with SQL error when:
$link->setErrorMessage("D�plac� Temporairement".);
$link->save();
Get response 302 with reason phase having special characters, e.g. �.
Try to detect correct encoding and convert string. If encoding can't be detected, at least replace e.g. � with "?" to avoid problems.
I modified LinkCheckerService::statusHandling() by adding:
$error = mb_convert_encoding($error, 'UTF-8', mb_detect_encoding($error, ['ASCII', 'UTF-8', 'ISO-8859-1']));
Needs review
2.0
Code