Dealing with Autodecode

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Wed Jun 1 00:10:56 PDT 2016


On 5/31/2016 11:57 PM, Jacob Carlborg wrote:
>> The way to deal with it is to replace reliance on autodecode with
>> .byDchar
> Don't you get the same behavior using byDchar as with autodecode?


Yes (except that byDchar returns the replacement char on invalid Unicode, while 
autodecode throws an exception). But the point is that byDchar is opt-in.



More information about the Digitalmars-d mailing list