Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
lloeki
4y ago
0 comments
Save
Share
Should it reverse a BOM as well or keep it first?
0 comments
2 comments · 2 top-level
top
newest
oldest
account42
4y ago
Remove 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.
Spivak
4y ago
Keep 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.
j
/
k
navigate · click thread line to collapse