dmd foreach loops throw exceptions on invalid UTF sequences, use replacementDchar instead
user1234
user1234 at 12.de
Mon Nov 15 08:20:57 UTC 2021
On Friday, 12 November 2021 at 10:42:15 UTC, kdevel wrote:
> This does not yet compile:
>
> [...]
> R = ubyte[]`
> must satisfy one of the following constraints:
> ` isSomeChar!(ElementType!R)
> is(StringTypeOf!R)`
auto-decoding or not... you need to decode from whatever is the
OS encoding (must be ancient ANSI I presume ?) to UTF-8.
More information about the Digitalmars-d
mailing list