Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Pain solution in Clear category for Remove Accents by AlanBuric
from unicodedata import normalize, category
def checkio(text):
return ''.join(c for c in normalize('NFD', text) if category(c) != 'Mn')
#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')
Dec. 7, 2022