Unidepre是正确的答案。它将所有
unipre字符串音译为ASCII文本中最接近的可能表示形式。
例:
accented_string = u'Málaga'# accented_string is of type 'unipre'import unidepreunaccented_string = unidepre.unidepre(accented_string)# unaccented_string contains 'Malaga'and is of type 'str'

Unidepre是正确的答案。它将所有
unipre字符串音译为ASCII文本中最接近的可能表示形式。
例:
accented_string = u'Málaga'# accented_string is of type 'unipre'import unidepreunaccented_string = unidepre.unidepre(accented_string)# unaccented_string contains 'Malaga'and is of type 'str'