2 ms·
It does: https://www.unicode.org/faq/utf_bom.html#bom4 https://www.unicode.org/faq/utf_bom.html#bom4 Well require is a bit excessive, but it certainly allows a
by masklinn 5y ago
It does: https://www.unicode.org/faq/utf_bom.html#bom4 https://www.unicode.org/faq/utf_bom.html#bom4
Well require is a bit excessive, but it certainly allows and recommends one.
Utf8 does not need one because the code units are bytes, so bytes order is not a concern.
Exchanging utf32 is pretty rare though, and as long as you don’t move anything between machines bytes order is not an issue.