←back to thread

238 points GalaxySnail | 1 comments | | HN request time: 0s | source
Show context
a-french-anon ◴[] No.40170353[source]
Why not utf-8-sig, though? It handles optional BOMs. Had to fix a script last week that choked on it.
replies(3): >>40170707 #>>40170832 #>>40171048 #
orf ◴[] No.40170832[source]
Because changing Python to silently prefixing all IO with an invisible BOM isn’t a good idea.
replies(1): >>40174582 #
int_19h ◴[] No.40174582[source]
The expectation isn't for it to generate BOM in the output, but to handle BOM gracefully when it occurs in the input.
replies(2): >>40176709 #>>40176715 #
1. ◴[] No.40176709{3}[source]