'RealmDB and diacritical letters problem with upper and lower case
I have project where I use RealmDB. When I use search feature with normal string(letters) it work well - upper/lower letters are in mode Case.INSENSITIVE
, but it doesn't work with diacritical letters.
The string starting also from capital or lower letters should show in the list. When searching starting with Å,Ä,Ö or starting with å, ä, ö are not displayed in list and inverse.
Do you have any suggestions how to fix it using RealmDB or have you got any workaround in mind? I do not want use normalization, because it is not my goal. I know RealmDB doesn't have such feature. Thanks
Fixed: just adding to contains in searching and it works:
mystring.uppercase()
mystring.lowercase()
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|