StackAsk is a community where developers ask questions, share answers and learn from each others real-world experience, so every solved problem helps the next person who runs into it.
Python 3.8.10 (default, May 4 2021, 03:06:52) [Clang 12.0.0 (clang-1200.0.32.29)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> s1 = 'Nguyễn Đình Bách' >>> print(s1.encode('utf-8')) b'Nguyxc3xaaxccx83n xc4x90ixccx80nh Baxccx81ch' >>> s2 = 'Nguyễn Đình Bách' >>> print(s2.encode('utf-8')) b'Nguyxc3xaaxccx83n xc4x90ixccx80nh Baxccx81ch' >>> print(s1 == s2) True
import unidecode s1 = b’Nguyxc3xaaxccx83n xc4x90ixccx80nh Baxccx81ch’.decode(‘utf8′) s2 = b’Nguyxe1xbbx85n xc4x90xc3xacnh Bxc3xa1ch’.decode(‘utf8’) unidecode.unidecode(s1) == unidecode.unidecode(s2)
2.2K Point(s)
1.2K Point(s)
313 Point(s)
178 Point(s)
138 Point(s)
Input your email to receive reset password link, or if you remember your password, you can click