/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.199s
|
source
Show context
Macha
◴[
26 Apr 24 13:02 UTC
]
No.
40168944
[source]
▶
>>40168242 (OP)
#
> And many other popular programming languages, including Node.js, Go, Rust, and Java uses UTF-8 by default.
Oh, I missed Java moving from UTF-16 to UTF-8.
replies(3):
>>40169012
#
>>40169499
#
>>40169530
#
rootext
◴[
26 Apr 24 14:00 UTC
]
No.
40169499
[source]
▶
>>40168944
#
It seems you are mixing two things: inner string representation and read/write encoding. Java has never used UTF-16 as default for the second.
replies(2):
>>40170808
#
>>40176650
#
1.
Dwedit
◴[
27 Apr 24 02:36 UTC
]
No.
40176650
[source]
▶
>>40169499
#
Or possibly confusing it with JavaScript, which treats strings as sequences of UTF-16 characters?
ID:
GO
↑