38 ms·
Just limit it to 8 bytes at which point you always do 'know the number of follow on bytes' from the first byte. Nobody needs more than 4.47 trillion characters
by yyyk 6d ago
Just limit it to 8 bytes at which point you always do 'know the number of follow on bytes' from the first byte.
Nobody needs more than 4.47 trillion characters. (famous last words)
- mitxela 6d agoImportant to recognize that characters have individuality, that's why there can only be a limited number of them. Unicode is enumerating a finite set of things, not encoding an infinite set. Aenything without this property - any generic form of encoding - is not characters, it's something else like images. If it's not in any alphabet it shouldn't be in unicode, you should use an escape tag for image data instead. (Emojis probably shouldn't, but they do behave like an alphabet) There cannot be 4 trillion characters because humans would need to know all of them and humans cannot know that many things.