| Summary: | database regional setting UTF8 versus UTF16SE | ||
|---|---|---|---|
| Product: | [Applications] digikam | Reporter: | Mir-123 |
| Component: | Database-Sqlite | Assignee: | Digikam Developers <digikam-bugs-null> |
| Status: | REPORTED --- | ||
| Severity: | normal | CC: | caulier.gilles, metzpinguin, Mir-123 |
| Priority: | NOR | ||
| Version First Reported In: | 8.4.0 | ||
| Target Milestone: | --- | ||
| Platform: | Ubuntu | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | SQL PRAGMA encoding UTF16SE versus Lokale UTF8 | ||
|
Description
Mir-123
2024-11-07 20:38:19 UTC
We do not set PRAGMA encoding parameters to a SQLite DB. We use the system default. PRAGMA encoding cannot be changed after the DB is created. All operating systems, including Windows or macOS, use the SQLite default UTF-8. Your two systems use different system settings. Maik Created attachment 175632 [details]
SQL PRAGMA encoding UTF16SE versus Lokale UTF8
Thank you for the information. The facts have become a little clearer to me. In the DB Browser for SQLite program, the entry UTF-8 is output as the value in the table under settings for keyword locale. Similarly, in the same database using SQL PRAGMA encoding; UTF-16le is output. This apparently caused Digikam to get confused and this constellation resulted in messages when Digikan was started. If I have understood you correctly, however, the SQL PRAGMA encoding; query is decisive for the database and the settings for keyword locale (which can theoretically also be changed via the database) are probably only important as a display function. Correct, the locale in the DB is the last used database PRAGMA encoding. If this has changed, digiKam will provide the information about it. Maik MAik, Another file to close here ? Gilles |