Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import unicodedata
- texto_1 = 'Ni\u00f1o'
- texto_2 = 'Nin\u0303o'
- print(texto_1 == texto_2)
- texto_1 = unicodedata.normalize('NFC', texto_1)
- texto_2 = unicodedata.normalize('NFC', texto_2)
- print(texto_1 == texto_2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement