i'm trying to query a SQLite database in android where french characters with accents should be handled like normal latin characters, for example:
SELECT * FROM x WHERE y LIKE %cafe%
should return
café, câfè, ...
I have googled for a whole day now and read all concerning posts on stackoverflow. The possibility to add a column to the table that includes normalized titles is no option, because the database is fetched from a server and maintained by a third party.
Using collations mentioned in other posts like
Latin1_general_CI_AI
is also no option, because SQLite only supports 3 (in android 5) collations that don't help me.
Setting the database in android to
Locale.FRENCH
and using collation
COLLATE LOCALIZED
also doesn't do the trick.
I know there is some flag in iOS (DiacriticInsensitiveSearch) that does it automatically and so my hope is that something like this is available for android too.
Any ideas? Thanks in advance!