与A,S,E,E,U,U,I,Z PHP / MySQL的阵列搜索 [英] Php/MySql array search with ã, š, é, ë, ú, ü, í, ž
问题描述
大家好结果
如果有人在MySQL数据库中搜索术语zali本身真身,有什么是让适当的迹象所有可能的替代品(例如:E => E,E => E,A => A,U =>ü的最好方式, U => U的...),所以他/她可以得到像所有可能的结果:结果
žali本身真身结果
žali本身真身结果
žàli本身真身结果
žàliSE妈咪搜索结果
Hi everybody
If someone search for term "zali se mami" in mySql database, what is the best way to make all possible replacements with appropriate signs (for example e => ë, e => é, a => ã, u => ü, u => ú...) so he/she could get all possible results like:
"žali se mami"
"žali se màmi"
"žàli se mami"
"žàli së mami"
感谢您在您的帮助
推荐答案
使用 utf8_general_ci
整理在列。你可以在MySQL手册这两个页面了解更多关于归类的影响:
Use the utf8_general_ci
collation on the column. You can read more about the effects of the collation at these two pages in the MySQL manual:
Unicode Character Sets and Examples of the Effect of Collation
这篇关于与A,S,E,E,U,U,I,Z PHP / MySQL的阵列搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!