stephencelis/SQLite.swift

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

開放

#1,025 建立於 2020年10月8日

 (4 則留言) (0 個反應) (0 位負責人)Swift (1,618 個分叉)batch import
help wantedquestion

倉庫指標

星標
 (10,145 顆星)
PR 合併指標
 (平均合併 6天 17小時) (30 天內合併 4 個 PR)

描述

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

貢獻者指南