Forums / Developer / Search and UTF-8 doesn't work

Search and UTF-8 doesn't work

Author Message

andreas spahr

Monday 17 November 2003 10:33:27 am

I'm using ez 3.2.1 with mysql 4.1 and the unicode support works fine.
But one problems remains:
if I enter an english search word, the search result is ok. if I enter a cyrillic word, the search result shows all objects.

Both search words are in the same class attributes. And it makes no difference, if one is a text line and the other is a xml text field.

can someone give me a hint?

regards

andreas spahr

Tuesday 18 November 2003 6:18:14 am

Hi,
maybe there is a problem with indexing the utf-8 characters. the table ezsearch_word contains only latin characters.

I suppose, that the search with utf-8 works, because there is a well known site, www.fast.no, where the search seems to work with japanes language.
but i have still no idea what the reason could be.

andreas spahr

Tuesday 18 November 2003 8:33:59 am

-- ok, now it works: I don't know really why, one reason could be to start this again:
myisamchk -r -q --set-character-set=utf-8 /var/lib/mysql/ezdatabase/ezsearch_*.MYI