From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on ip-172-31-91-241.ec2.internal X-Spam-Level: X-Spam-Status: No, score=0.0 required=3.0 tests=none autolearn=ham autolearn_force=no version=4.0.1 Path: nntp.eternal-september.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada,fr.comp.lang.ada Subject: Re: Ada 202x; 2022; and 2012 and Unicode package (UTF-nn encodings handling) Date: Tue, 2 Sep 2025 20:08:36 +0200 Organization: A noiseless patient Spider Message-ID: <1097br7$lh15$1@dont-email.me> References: <10974d1$jn0e$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 02 Sep 2025 18:08:39 +0000 (UTC) Injection-Info: dont-email.me; posting-host="da1cc4a836b5d6f08d77737b6b06a134"; logging-data="705573"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/rs9MrU+6oPIlDbuwzwl1wqFDO9dPgAZg=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:6y1g67M87WqipbfuuABB0tQ/PnQ= Content-Language: en-US In-Reply-To: <10974d1$jn0e$1@dont-email.me> Xref: feeder.eternal-september.org comp.lang.ada:67018 fr.comp.lang.ada:2354 List-Id: On 2025-09-02 18:01, Alex // nytpu wrote: > I've written about this at length before because it's a major pain > point; but I can't find any of my old writing on it so I've rewritten it > here lol. The matter is quite straightforward: 1. Never ever use Wide and Wide_Wide. There is a marginal case of Windows API where you need Wide_String for UTF-16 encoding. Otherwise, use cases are absent. No text processing algorithms require code point access. 2. Use Character as octet. String as UTF-8 encoded. That is all. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de