Project

General

Profile

Actions

Bug #20665

closed

tx_indexedsearch description text with utf-8 encoding issues

Added by Thomas over 15 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Indexed Search
Target version:
-
Start date:
2009-06-24
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.3
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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)


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #19726: UTF8 produces bad character outputClosed2008-12-19

Actions
Actions

Also available in: Atom PDF