Error reading char in read

ag0aep6g via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Feb 17 13:34:16 PST 2017


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" */
}



More information about the Digitalmars-d-learn mailing list