/top/
/new/
/best/
/ask/
/show/
/job/
^
slacker news
login
about
←back to thread
PEP 686 – Make UTF-8 mode default
(peps.python.org)
238 points
GalaxySnail
| 1 comments |
26 Apr 24 11:55 UTC
|
HN request time: 0.202s
|
source
Show context
a-french-anon
◴[
26 Apr 24 15:08 UTC
]
No.
40170353
[source]
▶
>>40168242 (OP)
#
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
#
shellac
◴[
26 Apr 24 16:09 UTC
]
No.
40171048
[source]
▶
>>40170353
#
At this point nothing ought to be inserting BOMs in utf-8. It's not recommended, and I think choking on it is reasonable behaviour these days.
replies(3):
>>40171192
#
>>40173969
#
>>40178398
#
Athas
◴[
26 Apr 24 16:21 UTC
]
No.
40171192
[source]
▶
>>40171048
#
Why were BOMs ever allowed for UTF-8?
replies(5):
>>40171419
#
>>40171452
#
>>40172241
#
>>40175549
#
>>40177110
#
1.
josefx
◴[
26 Apr 24 16:41 UTC
]
No.
40171452
[source]
▶
>>40171192
#
Some editors used them to help detect UTF-8 encoded files. Since they are also valid zero length space characters they also served as a nice easter egg for people who ended up editing their linux shell scripts with a windows text editor.
ID:
GO
↑