Groups | Search | Server Info | Login | Register
Groups > comp.lang.ada > #49495
| From | Manuel Gomez <mgrojo@gmail.com> |
|---|---|
| Newsgroups | comp.lang.ada |
| Subject | Re: GtkAda and € |
| Date | 2021-09-12 13:44 +0200 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <shkp7m$141$1@gioia.aioe.org> (permalink) |
| References | (3 earlier) <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> |
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