3 ms·
Should it reverse a BOM as well or keep it first?
by lloeki 5y ago
Should it reverse a BOM as well or keep it first?
- Spivak 5y agoKeep it first? Like that’s not a gotcha. Your input is a string and the output is that string visually reversed. What it looks like in memory is irrelevant.
- account42 5y agoRemove it since the BOM is a hack to deal with shitty transfer encodings (i.e. UTF-16LE vs. UTF-16BE) and useless for UTF-8.