Posts: 46
Joined: Feb 2014
Reputation:
0
2022-05-13, 21:49
(This post was last modified: 2022-05-13, 22:02 by bodozer.)
Hi team,
Since Kodi was based on Phyton, I have problem with the local characters sorting.
I'm Swede and the letters å, ä, ö (ÅÄÖ) are rather common.
Now å and ä are sorted as a, and ö are sorted as o. The same goes for the major characters Å Ä Ö.
The proper way is this: abcdefghijklmnopqrstuvwxyzåäö
The ascii-codes for the letters isn't logical either...
The behavior is the same if I try another skin in Kodi or not.
And it same behavior KODI running on Linux, LibreElec (RPI), not tested Windows.
This is most annoying, because I try to match the list of movies from Kodi to match list from explorer in Windows / Linux.
If there is a fix I would be most greatfull.
Otherwise I hope it might be fixed soon.
best regards
Bo Schöllin
Posts: 5,442
Joined: Jul 2012
Reputation:
379
Would like you to post a log with debug logging enabled in Kodi to paste.kodi.tv to confirm your platform/system. In general Kodi will attempt to use collation (sorting) from platform Locale facet, but on some platforms falls back to a generic "C" locale and collation is done within Kodi. Kodi collation I don't think sorts the way you want.
There's a PR for Kodi 20 development to use ICU collation on Android.
There's also issues when MySQL db is used instead of default SQlite.
scott s.
.
Posts: 2
Joined: Jan 2023
Reputation:
0
Hi Scott,
Thanks for your answear.
Sorry, I'm acctually bodozer. I couldn't login to the forum, so I had to create a new user - bobrink.
Is there a kodi-guide to install SQlite on linux?
I just reinstalled Linux Mint with MySQL and Kodi 19.5 from scratch.
The problem remains, so I want to unistalll mySQL and install SQlite instead.
best regards
bodozer / bobrink
Posts: 46
Joined: Feb 2014
Reputation:
0
Sorry, the problem remain...
When using the MySQL database settings I described, the swedish letters Å, Ä and Ö is listed wrong.
Without the MySQL database settings the movies are listed correct.
I do really need the database sharing feature...
Can I some way have any use of SQLite settings to correct the problem above?
Otherwise, is there, any other sollution?
regards
bodozer
Posts: 5,442
Joined: Jul 2012
Reputation:
379
If you want a shared database your only options are MySQL or MariaDB. I encourage you to take a look at Kodi 20.0. In Kodi, sorting is mainly done in Kodi itself. The sort order (collation) is determined by the locale setting on your system, except for Android Kodi wasn't able to use the standard C language libraries due to Android restrictions and so would default to the so-called "C" locale. I'm not sure if there are any changes in Kodi 20.0 for that (I don't do Android). If you turn on debug logging in Kodi it will log what locale is in use. That should be your first step.
scott s.
.
Posts: 5,442
Joined: Jul 2012
Reputation:
379
OK it looks like Kodi is correctly setting your locale so it should be using the sorting order of your OS. I don't see a link to your pasted log so can't check that. It is not possible to change the database collation used by Kodi.
scott s.
.
Posts: 46
Joined: Feb 2014
Reputation:
0
Hi Scott,
Did you see the link to the mySQL problem?
If its a bug, is too late to fix it for Kodi 20.0?
br
bodozer