Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #string #remove #accent
ADD COMMENT
Topic
Name
6+1 =