stephencelis/SQLite.swift
Like does not work with Russian symbols? (ICU support)
开放
#1,025 创建于 2020年10月8日
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() + "%"))