2 ms·
You could still do this even if strings were encoded in UTF-8. Just define the length of the record to be the length in bytes. This is why most modern program
by nostrademons 13y ago
You could still do this even if strings were encoded in UTF-8. Just define the length of the record to be the length in bytes.
This is why most modern programming & serialization languages (Go, Python 3, Protocol Buffers, Cap'n Proto) define separate byte[] and string types. Some things are just binary data and should be treated as such. Other things are encodings of world languages and should also be treated as such.