I have 2 strings:
s1 = "CATS"
s2 = "САTS"
While they look the same, they are not. Comparing them in python or whatever method will yield a result FALSE
.
If I try encoding them using e.g. utf-8
in python:
s1 = s1.encode('utf-8')
s2 = s2.encode('utf-8')
and then print them
print(s1)
print(s2)
the result is
b'CATS'
b'\xd0\xa1\xd0\x90TS'
When I am comparing these 2 strings, I need to have result TRUE
while using s1==s2
. What should I do to achieve that? Many thanks for possible workaround.