Hi,
I’m having trouble with foreign characters in search. Icelandic characters like Á, Í, Æ, Ð, Ö, Þ, Ú, Ó, Ý, É are causing problems on a few websites.
In this case the problem is as follows:
If I search for “Ásgeir” I get search result if “Ásgeir” is in the title. But no result if “Ásgeir” is in body text but not in the title. On other words the search for foreign characters works for titles only.
If I goto line 157 in mod.search.php and try to convert the string to htmlentities like this:
$this->keywords = htmlentities($this->keywords, 1, “utf-8”, 1);
Then the situation is turned around. I can search for “Ásgeir” in the body text but get no result if “Ásgeir” is only in the title field. The body text is an MX UniEditor fieldtype.
EE version: 1.6.8
MySQL connection collation: utf8_general_ci
MYSQL charset: UTF-8 Unicode (utf8)
Any ideas on this?
regards,
Gylfi