Error reading char in read
Jean Cesar via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Feb 17 13:56:06 PST 2017
On Friday, 17 February 2017 at 21:34:16 UTC, ag0aep6g wrote:
> On 02/17/2017 09:24 PM, Ali Çehreli wrote:
>> It's the Unicode character "U+FFFD
>> REPLACEMENT CHARACTER", which is represented by 2 chars in D.
>
> It takes 3 `char`s to represent U+FFFD:
>
> void main()
> {
> import std.stdio;
> writeln("\uFFFD".length); /* prints "3" */
> }
Yes I also think about the possibility of the user to use the
char definition to read a sequence of characters, but calm ....
More information about the Digitalmars-d-learn
mailing list