From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.5-pre1 Path: eternal-september.org!reader02.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!cleanfeed3-a.proxad.net!nnrp1-2.free.fr!not-for-mail Newsgroups: comp.lang.ada X-Mozilla-News-Host: news://news.free.fr:119 From: DrPi <314@drpi.fr> Subject: Ada and Unicode Date: Sun, 18 Apr 2021 00:03:11 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Message-ID: <607b5b20$0$27442$426a74cc@news.free.fr> Organization: Guest of ProXad - France NNTP-Posting-Date: 18 Apr 2021 00:03:12 CEST NNTP-Posting-Host: 82.65.30.55 X-Trace: 1618696992 news-3.free.fr 27442 82.65.30.55:58744 X-Complaints-To: abuse@proxad.net Xref: reader02.eternal-september.org comp.lang.ada:61807 List-Id: Hi, I have a good knowledge of Unicode : code points, encoding... What I don't understand is how to manage Unicode strings with Ada. I've read part of ARM and did some tests without success. I managed to be partly successful with source code encoded in Latin-1. Any other encoding failed. Any way to use source code encoded in UTF-8 ? In some languages, it is possible to set a tag at the beginning of the source file to direct the compiler which encoding to use. I wasn't successful using -gnatW8 switch. But maybe I made to many tests and my brain was scrambled. Even with source code encoded in Latin-1, I've not been able to manage Unicode strings correctly. What's the way to manage Unicode correctly ? Regards, Nicolas