(Nov-23-2019, 09:42 AM)Gribouillis Wrote: Indeed, in this string string[0]
is a
and string[1]
is unicode U+0301 COMBINING ACUTE ACCENT. This string is different from >>> t = "\u00E1bcdefg" >>> t 'ábcdefg' >>> t[0] 'á' >>> ord(t[0]) 225
where t[0]
is U+00E1, LATIN SMALL LETTER A WITH ACUTE
Here is another try with your example:
string2 = "ábcdefg" # this is mine
string = "ábcdefg" # this is yours
print(string[0], string2[0])
# output
á a
This is really strange, they look same, but they are not equal. How to distinguish these two strings ?