Which “ICU-xxxx.df”-file to use?The collation ICU-UCA is the most basic UTF-8 collation. The ICU-UCA.df is our implementation of the DUCET (Default Unicode Collation Element Table) It will allow you to add the entries to your unique index because it considers 'ä' as different to 'ae'. If you don't have a sorting requirement for a particular locale it's a good choice.
In OpenEdge 11.6, there is more recent version (e.g. ICU_48-UCA).
The following example code is useful in evaluating the collation needed:
/*
Start the session with: prowin32 -cpinternal UTF-8
Testing “Krämer” vs “Kraemer”
*/
DEFINE VARIABLE c1 AS CHARACTER NO-UNDO.
DEFINE VARIABLE c2 AS CHARACTER NO-UNDO.
c1 = "Kr" + CHR(228,"UTF-8","1252") + "mer".
c2 = "Kraemer".
MESSAGE c1 SKIP
c2 SKIP
"Equal : " c1 = c2 SKIP
"---------------------------------------------" SKIP
"CASE-SENSITIVE : " COMPARE(c1,'=',c2,"CASE-SENSITIVE","ICU-UCA")
SKIP
"CASE-INSENSITIVE : " COMPARE(c1,'=',c2,"CASE-INSENSITIVE","ICU-UCA")
SKIP
"CAPS : " COMPARE(c1,'=',c2,"CAPS","ICU-UCA")
SKIP
VIEW-AS ALERT-BOX INFO BUTTONS OK.