[TYPO3] indexed search problem with utf-8, bug?

Nicola Raffaele Di Matteo nrdimatteo at tiscali.it
Tue Oct 2 00:21:50 CEST 2007


I spent some hours to find because indexed search extension was not able 
to find words that contain the character à, like, for example, "capacità".
Also the problem was in the results: all the à was not rendered.

I've found the problem is in the code:
$str = preg_replace('/\s+/',' ',$str);
in row 1970 of the file class.tx_indexedsearch.php

There was not a delimiter in the reg exp. I have added and it works!:
$str = preg_replace('/\s+/u',' ',$str);

Nicola.


More information about the TYPO3-english mailing list