1

I didn't find anything good on that topic. Im currently implementing simple search function with will use LIKE to find requested records. But I wan't to make "accents-free" search.

For example: object name is: "Gdańsk", it should be found by string "Gdansk" and "Gdańsk".

If it was the other way around, it would be as simple as transforming search string, but since we have to transform the original value before comparision then it's little more diffcult.

Any help would be welcome.

Im using MySQL 5.5.

j0k
  • 22,600
  • 28
  • 79
  • 90
Bartosz Rychlicki
  • 1,918
  • 3
  • 20
  • 41

1 Answers1

1

This is related to MySQL only. See:

How to conduct an Accent Sensitive search in MySql

If you want an accent insensitive search, then use utf8_general_ci as your database collation.

Community
  • 1
  • 1
Keyne Viana
  • 6,194
  • 2
  • 24
  • 55