SQLite select-string with umlaut SQLite select-string with umlaut sqlite sqlite

SQLite select-string with umlaut


The documentation says:

SQLite only understands upper/lower case for ASCII characters by default. The LIKE operator is case sensitive by default for unicode characters that are beyond the ASCII range.

But:

The ICU extension to SQLite includes an enhanced version of the LIKE operator that does case folding across all unicode characters.


This is a very inconvenient workaroud which does not make queries faster, but it does the trick. I replace all uppercase german umlauts after lowering my test_string like this:

SELECT replace(replace(replace(lower('ÄAÄBÖOÖGDDÜUÜ'), 'Ä', 'ä'), 'Ü', 'ü'), 'Ö', 'ö') AS loweredlowered---------äaäböoögddüuü