From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: border2.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: output of special characters Date: Fri, 10 Oct 2014 16:17:59 +0200 Organization: cbb software GmbH Message-ID: <5iu49vga6szo$.1q2padel1sbi3.dlg@40tude.net> References: Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: ZB2Fb2q1fa4xpMpNKFqV6Q.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: number.nntp.giganews.com comp.lang.ada:189617 Date: 2014-10-10T16:17:59+02:00 List-Id: 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