4 ms·
”For example, valid utf-8 must always use the shortest possible sequence or it's invalid.” nabla9 likely knows this, but for those wondering: utf8 can’t contai
by Someone 9y ago
”For example, valid utf-8 must always use the shortest possible sequence or it's invalid.”
nabla9 likely knows this, but for those wondering: utf8 can’t contain overlong encodings (https://en.m.wikipedia.org/wiki/UTF-8#Overlong_encodings https://en.m.wikipedia.org/wiki/UTF-8#Overlong_encodings), but need not use precomposed characters (https://en.m.wikipedia.org/wiki/Precomposed_character https://en.m.wikipedia.org/wiki/Precomposed_character) whenever possible (another way in which a shorter sequence is possible)