* unicode
@ 2004-10-11 11:22 Szymon Guz
2004-10-11 12:43 ` unicode Björn Persson
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Szymon Guz @ 2004-10-11 11:22 UTC (permalink / raw)
Hi,
what is the situation with using unicode (utf8) in Ada programs ?
regards
Szymon Guz
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: unicode
2004-10-11 11:22 unicode Szymon Guz
@ 2004-10-11 12:43 ` Björn Persson
2004-10-11 12:53 ` unicode Martin Krischik
2004-10-12 2:16 ` unicode Steve
2 siblings, 0 replies; 4+ messages in thread
From: Björn Persson @ 2004-10-11 12:43 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: unicode
2004-10-11 11:22 unicode Szymon Guz
2004-10-11 12:43 ` unicode Björn Persson
@ 2004-10-11 12:53 ` Martin Krischik
2004-10-12 2:16 ` unicode Steve
2 siblings, 0 replies; 4+ messages in thread
From: Martin Krischik @ 2004-10-11 12:53 UTC (permalink / raw)
Szymon Guz wrote:
> Hi,
> what is the situation with using unicode (utf8) in Ada programs ?
Use XML/Ada
With Regards
Martin
--
mailto://krischik@users.sourceforge.net
http://www.ada.krischik.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: unicode
2004-10-11 11:22 unicode Szymon Guz
2004-10-11 12:43 ` unicode Björn Persson
2004-10-11 12:53 ` unicode Martin Krischik
@ 2004-10-12 2:16 ` Steve
2 siblings, 0 replies; 4+ messages in thread
From: Steve @ 2004-10-12 2:16 UTC (permalink / raw)
XML/Ada includes what appears to be extensive support for Unicode.
http://libre.act-europe.fr/xmlada/
Steve
(The Duck)
"Szymon Guz" <guzo@stud.ics.p.lodz.pl> wrote in message
news:ckdqe2$if8$1@news2.ipartners.pl...
> Hi,
> what is the situation with using unicode (utf8) in Ada programs ?
>
> regards
> Szymon Guz
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-10-12 2:16 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-11 11:22 unicode Szymon Guz
2004-10-11 12:43 ` unicode Björn Persson
2004-10-11 12:53 ` unicode Martin Krischik
2004-10-12 2:16 ` unicode Steve
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox