stephencelis/SQLite.swift

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

Ouverte

#1 025 ouverte le 8 oct. 2020

 (4 commentaires) (0 réaction) (0 personne assignée)Swift (1 618 forks)batch import
help wantedquestion

Métriques du dépôt

Stars
 (10 145 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

Description

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() + "%"))

Guide contributeur