Comment on Anon is a linguist
alias_qr_rainmaker@lemmy.world 4 days agodoes 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
Comment on Anon is a linguist
alias_qr_rainmaker@lemmy.world 4 days agodoes 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 4 days 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