From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: unicode and wide_text_io
Date: Thu, 28 Dec 2017 18:51:41 -0600
Date: 2017-12-28T18:51:41-06:00 [thread overview]
Message-ID: <p243iu$gtf$1@franka.jacob-sparre.dk> (raw)
In-Reply-To: 023dc29b-dbc5-4fc8-b44f-d748517adec8@googlegroups.com
"Mehdi Saada" <00120260a@gmail.com> wrote in message
news:023dc29b-dbc5-4fc8-b44f-d748517adec8@googlegroups.com...
...
> Myself:
>> there are positions such as Wide_Character'Val(X) doesn't correspond to
>> the Xth character in the UNICODE standard ??
> Of course: Character'val(156) to 'val(255) are one byte long, whereas in
> UTF8 the corresponding code points are encoded with two bytes. Did I
> understood the lesson ?
Yup, that's right. And it depends on what the display device is handling as
to whether UTF-8 is recognized. If you don't include Dmitry's chcp command
on Windows, most likely his program will output garbage. (On my computer,
the default code page is 437, which certainly won't display UTF-8 strings!)
Randy.
next prev parent reply other threads:[~2017-12-29 0:51 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-27 18:08 unicode and wide_text_io Mehdi Saada
2017-12-27 20:04 ` Dmitry A. Kazakov
2017-12-27 21:47 ` Dennis Lee Bieber
2017-12-27 22:32 ` Mehdi Saada
2017-12-27 22:33 ` Mehdi Saada
2017-12-27 22:48 ` Mehdi Saada
2017-12-27 23:32 ` Mehdi Saada
2017-12-27 23:57 ` Randy Brukardt
2017-12-28 5:20 ` Robert Eachus
2017-12-31 21:41 ` Keith Thompson
2017-12-28 9:04 ` Dmitry A. Kazakov
2017-12-28 11:06 ` Niklas Holsti
2017-12-28 11:50 ` Dmitry A. Kazakov
2017-12-28 13:15 ` Mehdi Saada
2017-12-28 14:25 ` Dmitry A. Kazakov
2017-12-28 14:32 ` Simon Wright
2017-12-28 15:28 ` Niklas Holsti
2017-12-28 15:47 ` 00120260b
2017-12-28 22:35 ` G.B.
2017-12-28 18:15 ` Simon Wright
2017-12-28 22:36 ` Mehdi Saada
2017-12-29 0:51 ` Randy Brukardt [this message]
2017-12-30 12:50 ` Björn Lundin
2017-12-30 15:33 ` Dennis Lee Bieber
2017-12-30 15:56 ` Dmitry A. Kazakov
2017-12-30 23:20 ` Björn Lundin
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox