From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,56303b117e22c428 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news2.google.com!proxad.net!proxad.net!news-stoc.telia.net!telia.net!217.209.241.158.MISMATCH!newspeer1.se.telia.net!se.telia.net!masternews.telia.net.!newsc.telia.net.POSTED!not-for-mail From: =?ISO-8859-1?Q?Bj=F6rn_Persson?= User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1) Gecko/20031114 X-Accept-Language: sv, sv-se, sv-fi, en-gb, en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: unicode References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Message-ID: Date: Mon, 11 Oct 2004 12:43:19 GMT NNTP-Posting-Host: 217.209.116.179 X-Complaints-To: abuse@telia.com X-Trace: newsc.telia.net 1097498599 217.209.116.179 (Mon, 11 Oct 2004 14:43:19 CEST) NNTP-Posting-Date: Mon, 11 Oct 2004 14:43:19 CEST Organization: Telia Internet Xref: g2news1.google.com comp.lang.ada:5040 Date: 2004-10-11T12:43:19+00:00 List-Id: 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=20 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=20 they don't get interpreted as Latin 1. Or you could use EAstrings, part=20 of AdaCL (http://sourceforge.net/projects/adacl), and get support for=20 all encodings with automagic conversion - at lest on Gnu-based systems=20 (more accurately any system that has the iconv function); Windows=20 support is still on the to-do list. Download it from CVS to get IO and=20 the latest improvements. --=20 Bj=F6rn Persson PGP key A88682FD omb jor ers @sv ge. r o.b n.p son eri nu