Issue Bug Closed

#20665tx_indexedsearch description text with utf-8 encoding issues

Thomas 06/24/09, 18:16 updated 09/09/13, 10:22

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)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.