[gtkada] UTF-8 in GtkAda 2.0

Emmanuel Briot briot at ACT-Europe.FR
Thu Mar 27 11:37:56 CET 2003


On Thu, 2003-03-27 at 10:28, Jacob Sparre Andersen wrote:

> Yes.  And implementing it as a private type would even
> prevent the programmers from accidentally putting non-UTF-8
> byte sequences into objects of that type (even the ISO-10646
> library Ngeadal hasn't gone that far).

Please check out exactly the difference between Utf8 and Iso8859-1:

The latter is a mapping from a number to an actual lexeme (65 => 'A' and
so on), the former is a way to encode numbers in a string of bytes
(numbers greater than 255 need to be split over several bytes.

You are totally confusing the issues here. An Ada string is just that: a
series of bytes. The signification of the bytes is left to the
subprogram to which you are passing the string, in this case gtk+.

Emmanuel





More information about the gtkada mailing list