DMD: invalid UTF character `\U0000d800`

Per Nordlöw per.nordlow at gmail.com
Sun Nov 8 11:20:54 UTC 2020


On Sunday, 8 November 2020 at 10:47:34 UTC, Per Nordlöw wrote:
>     cast(dchar)0x0000d8000

To clarify,

     enum dch1 = cast(dchar)0xa0a0;
     enum dch2 = '\ua0a0';
     assert(dch1 == dch2);

works. Can I use the first-variant if I want to postpone these 
encoding questions for now?


More information about the Digitalmars-d-learn mailing list