[Lazarus] UTF8 string compare with correct locale sorting
Hans-Peter Diettrich
DrDiettrich1 at aol.com
Thu Oct 17 21:56:17 CEST 2013
Jürgen Hestermann schrieb:
> I fully aggree on this
>
> http://www.utf8everywhere.org/
>
> and therefore want to use UTF8 in all my programs.
> But the problem is sorting UTF8 strings.
> According to
>
> http://forum.lazarus.freepascal.org/index.php?topic=15256.0
>
> UTF8CompareText would be the best choice and it runs quite fast.
> But it does not obey sorting by locale (i.e. german umlauts end
> up at the end of the list although they need to be sorted together with
> their corresponding non-umlaut characters (Ü at U, Ä at A, and so on).
>
> Does *any* Pascal UTF8 string compare function exist that does this?
Such functions should be provided by the system's
Unicode/internationalization library. When they can be located there, a
wrapper can be added to the RTL.
DoDi
More information about the Lazarus
mailing list