Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Uding unicodedata solution in Clear category for Remove Accents by a_ntv
import unicodedata as ud
def checkio(in_string):
normalized = ud.normalize('NFKD', in_string)
return u"".join([c for c in normalized if not ud.combining(c)])
#These "asserts" using only for self-checking and not necessary for auto-testing
if __name__ == '__main__':
assert checkio(u"préfèrent") == u"preferent"
assert checkio(u"loài trăn lớn") == u"loai tran lon"
print('Done')
April 7, 2020