stephencelis/SQLite.swift

Like does not work with Russian symbols? (ICU support)

Open

#1025 aperta il 8 ott 2020

Vedi su GitHub
 (4 commenti) (0 reazioni) (0 assegnatari)Swift (1618 fork)batch import
help wantedquestion

Metriche repository

Star
 (10.145 star)
Metriche merge PR
 (Merge medio 6g 17h) (4 PR mergiate in 30 g)

Descrizione

Hello. I use like with lowercaseString and Russian symbols but LOWER doesn't convert them to lowercase in the query. I tried to create my own function but it didn't work for me. How to solve this problem? Thanks.

// in name value: ПРИВЕТ from database let search_name = "Привет" user.filter(name.lowercaseString.like("%" + search_name.lowercased() + "%"))

Guida contributor