Jump to content
Poweramp
Yakim

Case insensitive search for non-Latin characters

Recommended Posts

When I try to search songs with Latin title (or another tag) the case is insensitive, but with Cyrillic tags search results contains only items that case are match.

Share this post


Link to post
Share on other sites

Yes, it is so for Cyrillic tags, it is Android settings that don't let  you to work with Cyrillic like with other languages.

Share this post


Link to post
Share on other sites

But is it bug and need to be fixed. The clause of the bug not in Android settings, Android provides you sqlite3. Sqlite 3 supports UTF-8 and UTF-16, but doesn't works with case-insensitive LIKE and ORDER BY for characters that out of ASCII-range. I found a several ways to resolve this problem:

- ICU extension for sqlite3 (http://stackoverflow.com/questions/3944207/unicode-support-in-android-ndk)

- CursorWrapper (https://gist.github.com/ramzes642/5400792)
- Create additionally field for search and store therein lowercase'd text

 

Please don't forget for non-English users ;)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×