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.7 required=3.0 tests=BAYES_40,FREEMAIL_FROM, FROM_STARTS_WITH_NUMS,PDS_FROM_2_EMAILS autolearn=no autolearn_force=no version=3.4.5-pre1 X-Received: by 2002:ac8:6a10:: with SMTP id t16mr211040qtr.374.1624304941589; Mon, 21 Jun 2021 12:49:01 -0700 (PDT) X-Received: by 2002:a25:a365:: with SMTP id d92mr11217957ybi.462.1624304941437; Mon, 21 Jun 2021 12:49:01 -0700 (PDT) Path: eternal-september.org!reader02.eternal-september.org!news.uzoreto.com!tr2.eu1.usenetexpress.com!feeder.usenetexpress.com!tr1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 21 Jun 2021 12:49:01 -0700 (PDT) In-Reply-To: Injection-Info: google-groups.googlegroups.com; posting-host=2001:8b0:ca:6:0:0:0:fd; posting-account=TiHetgoAAACluCgYkPc8-TWs6dBNgSne NNTP-Posting-Host: 2001:8b0:ca:6:0:0:0:fd References: <491a3435-63c5-464d-83ac-6b82ac39b7d6n@googlegroups.com> <874bd6ad-df44-4d63-bb6c-9d2941781e6en@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: XMLAda & unicode symbols From: "196...@googlemail.com" <1963bib@googlemail.com> Injection-Date: Mon, 21 Jun 2021 19:49:01 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader02.eternal-september.org comp.lang.ada:62271 List-Id: On Monday, 21 June 2021 at 16:37:21 UTC+1, Simon Wright wrote: > "196...@googlemail.com" <196...@googlemail.com> writes: > > > That's the degree symbol, what I really need is the degree centigrade > > symbol which is U+2103. > > > > Having Character'Val (16#21#) & Character'Val (16#03#) fails at runtime. > That's because the utf-8 encoding is 3 octets, 0xE2 0x84 0x83 Yup, that works, but just how the heck do you get from U+2103 to those 3 octets? I can see from http://www.ltg.ed.ac.uk/~richard/utf-8.cgi?input=2103&mode=hex that it gives it. Anyway, the dent in my desk is now a couple of mill deeper. Thanks