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!aioe.org!yy9MKEJN2ULhWGfnfq4v5w.user.gioia.aioe.org.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: XMLAda & unicode symbols Date: Mon, 21 Jun 2021 21:47:02 +0100 Organization: Aioe.org NNTP Server Message-ID: References: <491a3435-63c5-464d-83ac-6b82ac39b7d6n@googlegroups.com> <874bd6ad-df44-4d63-bb6c-9d2941781e6en@googlegroups.com> NNTP-Posting-Host: yy9MKEJN2ULhWGfnfq4v5w.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (darwin) X-Notice: Filtered by postfilter v. 0.9.2 Cancel-Lock: sha1:z9a/ksS8FMQ0Iz15r3skjKdfPUw= Xref: reader02.eternal-september.org comp.lang.ada:62276 List-Id: "196...@googlemail.com" <1963bib@googlemail.com> writes: > 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. Google was my friend (not that site, tho)