Characters “ي” and “ی” and the difference in persian - Mysql

前端 未结 8 1127
忘掉有多难
忘掉有多难 2020-12-23 19:56

I\'m working on a UTF-8 Persian website with integrated mysql database. All the content in the website are imported through an admin panel and it\'s all persian.

As

8条回答
  •  隐瞒了意图╮
    2020-12-23 20:19

    If you've the possibility to switch DB engine, you might want to look into the full text search functionality of PostgreSQL:

    http://www.postgresql.org/docs/9.0/static/textsearch.html

    Among other things, you can configure it so that it indexes/searches unaccented characters, and you can define all sorts of additional dictionaries (e.g. stop words, thesaurus, synonyms, etc.).

    If not, consider using Sphinx or Lucene instead of like statements for your searches.

提交回复
热议问题