From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: GtkAda and €
Date: Fri, 10 Sep 2021 20:53:07 +0200 [thread overview]
Message-ID: <shg9ih$htv$1@gioia.aioe.org> (raw)
In-Reply-To: 06dbbe8e-737e-44c2-9e9c-40e8f8aade2fn@googlegroups.com
On 2021-09-10 19:56, AdaMagica wrote:
> I'm struggling to get the euro sign in a label or on a button in GtkAda.
> I have the euro sign on my German keyboard (on the E key), but I have no idea how this is encoded. So how do I get this in UTF8?
With Strings Edit:
Strings_Edit.UTF8.Image (16#20A0#)
See:
http://www.dmitry-kazakov.de/ada/strings_edit.htm#7
Otherwise, see:
https://www.fileformat.info/info/unicode/char/20ac/index.htm
It gives the hexadecimal UTF-8 encoding:
0xE2 0x82 0xAC
So, in Ada:
Character'Val (16#E2#) &
Character'Val (16#82#) &
Character'Val (16#AC#)
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
next prev parent reply other threads:[~2021-09-10 18:53 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-10 17:56 GtkAda and € AdaMagica
2021-09-10 18:53 ` Dmitry A. Kazakov [this message]
2021-09-11 9:20 ` AdaMagica
2021-09-11 9:57 ` AdaMagica
2021-09-11 10:04 ` Dmitry A. Kazakov
2021-09-11 11:11 ` Emmanuel Briot
2021-09-11 12:47 ` Dmitry A. Kazakov
2021-09-11 13:26 ` AdaMagica
2021-09-11 13:51 ` AdaMagica
2021-09-11 14:13 ` Dmitry A. Kazakov
2021-09-11 17:46 ` Manuel Gomez
2021-09-12 7:04 ` AdaMagica
2021-09-12 11:44 ` Manuel Gomez
2021-09-13 7:21 ` 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