this post was submitted on 13 Dec 2025
193 points (96.6% liked)

Greentext

7454 readers
894 users here now

This is a place to share greentexts and witness the confounding life of Anon. If you're new to the Greentext community, think of it as a sort of zoo with Anon as the main attraction.

Be warned:

If you find yourself getting angry (or god forbid, agreeing) with something Anon has said, you might be doing it wrong.

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] alias_qr_rainmaker@lemmy.world 2 points 9 hours ago (1 children)

does chinese code take up less space? wait how many bytes does it take to encode a chinese character? is it just UTF-8 or is it something else

[โ€“] fibojoly@sh.itjust.works 1 points 7 hours ago

UTF-16 is fine for the cat majority of Chinese characters. It has been standard since 2008 for C++ (at least for code that wants to be running on windows; Microsoft moved everything to w_string back then).
C# uses UTF-16 natively for strings.
Dunno about other languages