According to the Unicode specification these two strings are supposed to be equal because of unicode equivalence ( https://en.wikipedia.org/wiki/Unicode_equivalence#Errors_due_to_normalization_differences )
s1 = "\u006E\u0303"
s2 = "\u00F1"
But s1 == s1
returns False
. I can't find on the Python webSite anything that states what ==
means for unicode string in Python?
For instance, this definition is clear for Swift ( https://developer.apple.com/library/content/documentation/Swift/Conceptual/Swift_Programming_Language/StringsAndCharacters.html ). I can't see anything similar for Python.