3 ms·
Without. The BOM is for UTF-16 and UTF-32. Nor would would you want a BOM on every string in memory -- that would make it impossible to cheaply substring, for
by cryptonector 9y ago
Without. The BOM is for UTF-16 and UTF-32. Nor would would you want a BOM on every string in memory -- that would make it impossible to cheaply substring, for example. BOMs are for external documents -- for interop.
- codeulike 9y agoOk, but for files, it does happen https://docs.microsoft.com/en-us/globalization/encoding/byte-order-mark https://docs.microsoft.com/en-us/globalization/encoding/byte...
- cryptonector 9y agoI understand, but it's a mistake and completely unnecessary.