Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Case sensitivity for german letters Ä, Ö and Ü #2626

Closed
wants to merge 1 commit into from

Conversation

pkess
Copy link
Contributor

@pkess pkess commented Jul 12, 2017

Hi there,

i just discoverd a problem with unicode strings: The german letters ä, ö and ü are case-sensitive in queries. I was not able to fix the problem at the moment but i added a test case for this. Any ideas where to fix this?

ATM the german letters ä, ö and ü are case-sensitive in querys.
This adds a test for this behaviour
@pkess pkess added the bug bugs that are confirmed and actionable label Jul 12, 2017
@sampsyo
Copy link
Member

sampsyo commented Jul 13, 2017

Hi! Thanks for pointing this out. The root cause is that we rely on the SQLite LIKE operator, which is case in-sensitive by default but only knows about ASCII characters for that purpose. The documentation linked there refers to an ICO extension to help resolve this, but it's not clear how widespread this is. This could use a little more digging, if you're up for it!

@pprkut
Copy link
Contributor

pprkut commented Jul 14, 2017

An alternative might be to do a lower case comparison, something like WHERE lower(attr) LIKE lower("*foo*") or some such. But no idea what the performance penalty might be for that.
Also: ä, ö and ü are in the ASCII character set, so something else would still be off.

@sampsyo
Copy link
Member

sampsyo commented Jul 14, 2017

I believe that would have the same problem: the lower function https://sqlite.org/lang_corefunc.html#lower is ASCII-only by default; we can get a Unicode-aware version by enabling the ICO extension.

@jtpavlock
Copy link
Contributor

This could be another thing supersqlite helps with

@stale
Copy link

stale bot commented Nov 18, 2020

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Nov 18, 2020
@stale stale bot closed this Nov 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bugs that are confirmed and actionable stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants