Answers for "python string remove accent"

0

python string remove accent

def convert_to_non_accent(string):
    """ Function to convert accent characters to non accent
    characters.
    :param string: String to be converted.
    :type string: str
    :return: str
    """
    return ''.join(ch for ch in unicodedata.normalize('NFKD', string)
                   if not unicodedata.combining(ch))
Posted by: Guest on July-16-2021

Python Answers by Framework

Browse Popular Code Answers by Language