Groups | Search | Server Info | Login | Register
Groups > comp.lang.ada > #49495
| Path | csiph.com!aioe.org!TFl9E9FPtgqYQS0i9tziBg.user.46.165.242.91.POSTED!not-for-mail |
|---|---|
| From | Manuel Gomez <mgrojo@gmail.com> |
| Newsgroups | comp.lang.ada |
| Subject | Re: GtkAda and € |
| Date | Sun, 12 Sep 2021 13:44:54 +0200 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <shkp7m$141$1@gioia.aioe.org> (permalink) |
| References | <06dbbe8e-737e-44c2-9e9c-40e8f8aade2fn@googlegroups.com> <shg9ih$htv$1@gioia.aioe.org> <234ee351-3abb-445e-9d34-d5abd7a8a9b6n@googlegroups.com> <shhuvp$1sik$1@gioia.aioe.org> <4b1683a1-6ad5-4692-b671-807db5b51f27n@googlegroups.com> <e8b60ad9-b68f-4520-8f1d-1c8edfa03662n@googlegroups.com> <shiq27$1ejv$1@gioia.aioe.org> <25b8b400-8084-46c3-a1ec-6c721623e111n@googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8; format=flowed |
| Content-Transfer-Encoding | 8bit |
| Injection-Info | gioia.aioe.org; logging-data="1153"; posting-host="TFl9E9FPtgqYQS0i9tziBg.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org"; |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 |
| X-Notice | Filtered by postfilter v. 0.9.2 |
| Content-Language | en-GB |
| Xref | csiph.com comp.lang.ada:49495 |
Show key headers only | View raw
Am 12/9/21 um 9:04 schrieb AdaMagica: > In Gnat Studio, you can set the encoding (from the file's context menu > choose "Properties...") to Latin_9. Then the character 164 is displayed as € > in the Ada source file. You can even use the € key on the keyboard. That > does not help, however, since Unicode is based on Latin_1, and when this > is transformed to UTF8, the currency character appears on the GtkAda GUI. I suppose this is because the conversion assumes Latin-1 input, and it is acceptable given that String type should be in that encoding, but with a general string conversion library, like iconv, you can convert between any 8-bit character encoding and UTF-8. Here an Ada binding to iconv (I haven't used it): https://github.com/ytomino/iconv-ada And Matreshka League has several 8-bit character encodings, although it lacks ISO-8859-15. It should be easy to add ISO-8859-15 based on ISO-8859-1: http://forge.ada-ru.org/matreshka/wiki/League/TextCodec But I guess what you are already doing is the easiest approach. It's just one character.
Back to comp.lang.ada | Previous | Next — Previous in thread | Next in thread | Find similar
GtkAda and € AdaMagica <christ-usch.grein@t-online.de> - 2021-09-10 10:56 -0700
Re: GtkAda and € "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2021-09-10 20:53 +0200
Re: GtkAda and € AdaMagica <christ-usch.grein@t-online.de> - 2021-09-11 02:20 -0700
Re: GtkAda and € AdaMagica <christ-usch.grein@t-online.de> - 2021-09-11 02:57 -0700
Re: GtkAda and € "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2021-09-11 12:04 +0200
Re: GtkAda and € Emmanuel Briot <briot.emmanuel@gmail.com> - 2021-09-11 04:11 -0700
Re: GtkAda and € "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2021-09-11 14:47 +0200
Re: GtkAda and € AdaMagica <christ-usch.grein@t-online.de> - 2021-09-11 06:26 -0700
Re: GtkAda and € AdaMagica <christ-usch.grein@t-online.de> - 2021-09-11 06:51 -0700
Re: GtkAda and € "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2021-09-11 16:13 +0200
Re: GtkAda and € Manuel Gomez <mgrojo@gmail.com> - 2021-09-11 19:46 +0200
Re: GtkAda and € AdaMagica <christ-usch.grein@t-online.de> - 2021-09-12 00:04 -0700
Re: GtkAda and € Manuel Gomez <mgrojo@gmail.com> - 2021-09-12 13:44 +0200
Re: GtkAda and € Vadim Godunko <vgodunko@gmail.com> - 2021-09-13 00:21 -0700
csiph-web