Closed DenisSolonevich closed 1 month ago
search in youtube? or search in Trailarr app search bar?
Search in Trailarr. E.g. Harry Potter - OK harry potter - Nothing Found
It's working for me with lower case too...
Can you post a screenshot if possible?
You're right. I made more tests. It is case-sensitive for non-english (russian) language only. Could you please check it on the code-level?
@DenisSolonevich I have looked into this and it seems like a problem with sqlite database
itself.
Important Note: 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. For example, the expression 'a' LIKE 'A' is TRUE but 'æ' LIKE 'Æ' is FALSE. The ICU extension to SQLite includes an enhanced version of the LIKE operator that does case folding across all unicode characters.
Source: https://www.sqlite.org/lang_expr.html#the_like_glob_regexp_and_match_operators
There are some workarounds that can be implemented but it will come with performance degradation (takes more time to perform the search). Since the risks outweighs the benefits, we will not implement them at this time.
It looks like the search is case-sensitive. Could you check it please for sure?