I am programming an "Articles Archieve" contains articles about law. For this, I am using Linq to SQL and SQLite. And authors' names contain UTF-8 characters. When I search "oğuz
" term in the search textbox, it returns KARABULUT, Ayşe/EMİR, Oğuz
- PİLAT, Oğuz/GÜNAŞTI, Emin
- AYDOS, Oğuz Sadık
- İNAL, Oğuz Mehmet
. But it does not find and does not return OĞUZ, Habip
- OĞUZOĞLU, Ali
, OĞUZ, Kemal
- OĞUZMAN, Cemal
.
In the same way, when I search "OĞUZ
" term in the search textbox, it returns same datas as "oğuz
" term.
Here is my code:
IQueryable<article> results = (from m in _db.articles
where m.author.ToLower().Contains(textBox1.Text.ToLower())
select m).Distinct();
How can I manage this?