Indexes are to code units (bytes) not characters. This is addressed extensively in the string section in the manual:
5 Likes
Indexes are to code units (bytes) not characters. This is addressed extensively in the string section in the manual: