stephencelis/SQLite.swift

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

オープン

#1,025 opened on 2020/10/08

 (4 件のコメント) (0 件のリアクション) (0 人の担当者)Swift (1,618 件のフォーク)batch import
help wantedquestion

Repository metrics

Stars
 (10,145 個のスター)
PR merge metrics
 (平均マージ 6d 17h) (30d で 4 merged PRs)

説明

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

コントリビューターガイド