From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: XMLAda & unicode symbols
Date: Sun, 20 Jun 2021 19:23:35 +0200 [thread overview]
Message-ID: <santij$akg$1@gioia.aioe.org> (raw)
In-Reply-To: 491a3435-63c5-464d-83ac-6b82ac39b7d6n@googlegroups.com
On 2021-06-20 19:02, 196...@googlemail.com wrote:
> On Saturday, 19 June 2021 at 20:53:49 UTC+1, Jeffrey R. Carter wrote:
>> On 6/19/21 8:28 PM, 196...@googlemail.com wrote:
>>> I'm creating SVG files with XMLAda and I need to have a degree symbol within some text.
>>>
>>> I have:
>>> procedure Add_Min_Max (Min_Max_Str : String; X_Pos : String; Y_Pos : String) is
>> The degree symbol is part of Latin-1, so why not include it directly in your string?
>>
>> S : constant String := "50" & Ada.Characters.Handling.Latin_1.Degree_Sign;
>
> Unfortunately, when XMLAda comes to exporting the DOM tree, it crashed with:
> raised UNICODE.CES.INVALID_ENCODING : unicode-ces-utf8.adb:258
Maybe it expects UTF-8, as most third party Ada libraries do. In that
case use:
Character'Val (16#C2#) & Character'Val (16#B0#)
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
next prev parent reply other threads:[~2021-06-20 17:23 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-19 18:28 XMLAda & unicode symbols 196...@googlemail.com
2021-06-19 19:53 ` Jeffrey R. Carter
2021-06-20 17:02 ` 196...@googlemail.com
2021-06-20 17:23 ` Dmitry A. Kazakov [this message]
2021-06-20 17:58 ` 196...@googlemail.com
2021-06-20 18:16 ` Dmitry A. Kazakov
2021-06-21 19:40 ` 196...@googlemail.com
2021-06-21 20:18 ` Dmitry A. Kazakov
2021-06-21 15:37 ` Simon Wright
2021-06-21 19:49 ` 196...@googlemail.com
2021-06-21 20:23 ` Dmitry A. Kazakov
2021-06-21 20:47 ` Simon Wright
2021-06-22 0:30 ` Spiros Bousbouras
2021-06-20 18:21 ` Jeffrey R. Carter
2021-06-20 18:47 ` Dmitry A. Kazakov
2021-06-20 22:50 ` Jeffrey R. Carter
2021-06-21 4:16 ` Marius Amado-Alves
2021-06-21 9:39 ` Jeffrey R. Carter
2021-06-21 6:14 ` Dmitry A. Kazakov
2021-06-19 21:24 ` Simon Wright
2021-06-20 17:10 ` 196...@googlemail.com
2021-06-21 15:26 ` Simon Wright
2021-06-21 18:33 ` Emmanuel Briot
2021-06-21 20:06 ` 196...@googlemail.com
2021-06-21 21:26 ` Simon Wright
2021-06-22 6:52 ` Emmanuel Briot
2021-06-21 21:22 ` Simon Wright
2021-06-21 6:07 ` Vadim Godunko
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox