I am having frustrating times with performing Diacritic/accent insensitive searches of my database.
I have a table with alternative language terms stored in it. I have ensured that it has been set to use utf8
and collated in utf8_general_ci
(I have also tried _bin
and _unicode_ci
).
The trouble is that:
- Search for
Hahnchen
whenHähnchen
is stored it will yield a result - Search for
Hähnchen
whenHähnchen
is stored will not yield a result
If I work in phpmyadmin I can save values as above:
Hähnchen
But, working from my scripts this gets converted to:
Hühnchen
- Search for
Hahnchen
whenHühnchen
is stored it will not yield a result - Search for
Hähnchen
whenHühnchen
is stored will yield a result
Is there anything I am missing? I've read dozens of similar posts with no definitive answer (everything I have tried has failed).