Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3932464
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T23:27:42+00:00 2026-05-19T23:27:42+00:00

I have a SQLite database with cyrillic rows in it. For example: CREATE TABLE

  • 0

I have a SQLite database with cyrillic rows in it.
For example:

CREATE TABLE customer (
   id INTEGER PRIMARY KEY,
   name TEXT,
   surname TEXT
);

Suppose two of the rows are like this:

"153 | Иван | Попов"
"243 | Ivan | Popov"

It is actually the same name and surname written in russian and english.

I use c++ and Qt in my program. I want to select rows that contain particular string in name or surname columns.

Since I use QSqlTableModel I simply use filter (which is just WHERE part of SQL query) with SQL query:

void filterTable(QString filter)
{
   QString query;
   if(!filter.isEmpty())
   {
      //I've added the wildcards to be able to search
      //using only subset of the name or surname
      query += "name    LIKE '%" + filter "%' OR ";
      query += "surname LIKE '%" + filter "%'";
   }
   mySqlTableModel->setFilter(query);
}

When I set the filter to ‘ivan’ it shows the correct row (with id 243). However, when I attempt to do the same with ‘иван’ it does not show, while ‘Иван’, ‘ван’ and etc show correct entries. It seems like the query works only with case sensitive matches in cyrillic, while it works perfectly fine with latin letters.

I am aware of ICU and already enabled it. And it works:

$ sqlite3
$ SELECT 'Иван' like 'иван';
1

So I still can not understand why my queries in my program are case sensitive when I use cyrillic letters? Is it somehow related to SQL query implementation in Qt?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T23:27:43+00:00Added an answer on May 19, 2026 at 11:27 pm

    By default, SQLite only supports case-insensitivity for ASCII characters. If you want support for Unicode casing, you’ll have to define your own UPPER/LOWER functions and collation.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a SQLite database with this format: TABLE users | |---------name - text
I have an sqlite database on android created like this: sqlite> .schema CREATE TABLE
In my application I have a sqlite database that looks like this: CREATE TABLE
I have a SQLITE database with two tables. Table A has an integer timestamp
In my app I have SQLite database that has one table with date rows
I have an sqlite database with a config table with 3 rows: id, config
I have an sqlite database structured as follows: CREATE TABLE IF NOT EXISTS Patient
I have an Sqlite database in which I want to select rows of which
I have an sqlite database which currently holds an integer field called Year which
I have a SQLIte database with tables for places and tables for tags, CREATE

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.