I had typed a String whose some characters are accentuated. GNAT Studio seems to have encoded them in Latin1… and my library (GtkAda) had interpreted them as UTF-8.
I never use Unicode in the source. It must be strictly ASCII 7-bit. To compose UTF-8 strings I use code points. Eg.
Msg => "La destination ne peut pas " &
Strings_Edit.UTF8.Image (16#EA#) &
"tre incluse dans le r" &
Strings_Edit.UTF8.Image (16#E9#) &
"pertoire source",
Furthermore in GtkAda applications I never use string literals for UI texts. All texts I use come from the corresponding widget style property so that they all can be changed in the CSS file without modifying the source code. There exist other schemes too.