Bug #20665
closedtx_indexedsearch description text with utf-8 encoding issues
0%
Description
Under certain conditions the preg_replace() function in the second line of markupSWpartsOfString() produces wrong output. This preg_replace() is resonsible for reducing multiple blank spaces to a single one.
$str = preg_replace('/\s\s+/',' ',$str);
In the Frontend, the blank space character produced by this function is parsed wrong, most likely by the htmlspecialchars() later in the same function.
Hint: The problem might be related to the iconv implementation "libiconv" version 1.11, as the error didn't appear on another system with exactly the same PHP / TYPO3 / MySQL setup.
It seems like the preg_replace() function produces a false encoded blank space, which is later encoded to a "broken" utf-8 character (square with question mark).
(issue imported from #M11405)