2 ms·
I would actually rather change it to make the encoding required when opening a text file. Sometimes you do want UTF-8, but other times you do actually want loca
by int_19h 9y ago
I would actually rather change it to make the encoding required when opening a text file. Sometimes you do want UTF-8, but other times you do actually want locale encoding (because other text processing tools expect locale). And then "Explicit is better than implicit".
That said, .NET has been defaulting to UTF-8 for text files since 1.0, and it seems to be working well in practice, so maybe it is a reasonable default after all.