From: "Björn Persson" <spam-away@nowhere.nil>
Subject: Re: unicode
Date: Mon, 11 Oct 2004 12:43:19 GMT
Date: 2004-10-11T12:43:19+00:00 [thread overview]
Message-ID: <Hdvad.105801$dP1.392399@newsc.telia.net> (raw)
In-Reply-To: <ckdqe2$if8$1@news2.ipartners.pl>
Szymon Guz wrote:
> what is the situation with using unicode (utf8) in Ada programs ?
Ada 95 supports two character encodings: ISO 8859-1 (Latin 1) in the
types Character and String, and UCS-2 in Wide_Character and Wide_String.
I hear Ada 200Y will have a four-byte character type, so it will support
UCS-4 (UTF-32). For UTF-8 you could use arrays of Interfaces.Unsigned_8,
or you could declare your strings as String and be *very* careful so
they don't get interpreted as Latin 1. Or you could use EAstrings, part
of AdaCL (http://sourceforge.net/projects/adacl), and get support for
all encodings with automagic conversion - at lest on Gnu-based systems
(more accurately any system that has the iconv function); Windows
support is still on the to-do list. Download it from CVS to get IO and
the latest improvements.
--
Björn Persson PGP key A88682FD
omb jor ers @sv ge.
r o.b n.p son eri nu
next prev parent reply other threads:[~2004-10-11 12:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-11 11:22 unicode Szymon Guz
2004-10-11 12:43 ` Björn Persson [this message]
2004-10-11 12:53 ` unicode Martin Krischik
2004-10-12 2:16 ` unicode Steve
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox