dmd foreach loops throw exceptions on invalid UTF sequences, use replacementDchar instead
Imperatorn
johan_forsberg_86 at hotmail.com
Mon Nov 8 07:52:29 UTC 2021
On Sunday, 7 November 2021 at 23:29:39 UTC, Walter Bright wrote:
> On 11/7/2021 8:46 AM, Imperatorn wrote:
>> https://docs.microsoft.com/en-us/dotnet/standard/base-types/character-encoding
>
> The money quote:
>
> "By default, each object uses replacement fallback to handle
> strings that it cannot encode and bytes that it cannot decode,
> but you can specify that an exception should be thrown instead.
> For more information, see Replacement fallback and Exception
> fallback."
💲💲💲
More information about the Digitalmars-d
mailing list