1

我见过 Horde 的地址簿应用程序,它为没有正确字符的搜索提供了非常好的匹配。例如,如果搜索“Garcon”,则提供带有“Garçon”的条目。或者,搜索“Tugla”也会提供“Tuğla”。我想知道这是自己的代码还是Mysql可以处理这个。如果是,如何实现。

4

1 回答 1

1

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.

于 2012-01-17T22:19:12.643 回答