comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: output of special characters
Date: Fri, 10 Oct 2014 16:17:59 +0200
Date: 2014-10-10T16:17:59+02:00	[thread overview]
Message-ID: <5iu49vga6szo$.1q2padel1sbi3.dlg@40tude.net> (raw)
In-Reply-To: a3f2f69a-2fca-4cbf-9b5b-e6020276aad9@googlegroups.com

On Fri, 10 Oct 2014 06:36:19 -0700 (PDT), tonyg wrote:

> I want to output a special character to the screen 
> namely the ascii special symbol  degree ascii (176)
> 
> anyone know?

Provided Latin-1 encoding (because ASCII is 7-bit):

   Character'Val (176)

All depends on the terminal emulation mode, e.g. the code page. For
example, if the console expects UTF-8 then that would be

   Character'Val (16#c2#) & Character'Val (16#b0#)

etc.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de


      parent reply	other threads:[~2014-10-10 14:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-10 13:36 output of special characters tonyg
2014-10-10 13:42 ` Egil H H
2014-10-10 14:52   ` tonyg
2014-10-10 16:27   ` Georg Bauhaus
2014-10-10 14:17 ` Dmitry A. Kazakov [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox