Re:UTF-8 String Indexing Strategies
by danieldk on Thursday May 30, 2019 @07:38AM
(#20050151)
Code points are not the proper abstraction, since a character can be composed from a variable number of code points.
Also, bytes from 0-127 in UTF-8 (MSB is 0) are ASCII characters. In multibyte code points, the MSBs of the first byte are 11 and of continuation bytes 10.
Also, bytes from 0-127 in UTF-8 (MSB is 0) are ASCII characters. In multibyte code points, the MSBs of the first byte are 11 and of continuation bytes 10.