Mysql search for entries that have turkish characters

352 views Asked by At

I've seen Horde's address book application that delivers matches very nicely for searches that do not have the correct characters. For example if searching for 'Garcon' the entry with 'Garçon' is delivered. Or a search for 'Tugla' does also deliver 'Tuğla'. I wonder if this is own code or can Mysql handle this. If yes, how can this be achieved.

1

There are 1 answers

2
Niet the Dark Absol On BEST ANSWER

Setting the collation to the appropriate setting (in your case, probably uft8_turkish_ci) will affect which characters are considered equal. I'm fairly sure that with that collation Turkish characters will be equal to their equivalents, but I haven't had much experience in testing this fact - just going by what I read on the MySQL manual site.