Using COLLATE in Android SQLite - Locales is ignored in LIKE statement

前端 未结 5 1122
梦谈多话
梦谈多话 2020-11-30 14:59

When creating my SQLite database in Android I set the database locale - db.setLocale(new Locale(\"cz_CZ\")). This is a Czech locale.

A SELECT statement works and tak

5条回答
  •  生来不讨喜
    2020-11-30 15:29

    Have you had a look at the SQLite documentation for LIKE? It has come information about non ASCII characters and a bug. Maybe Android has an older version of SQLite installed where this is a problem.

    I think the second normalised column might be your best option unfortunately.

提交回复
热议问题