convert latin characters to ascii
xxxxxxxxxx
import unicodedata
def deburr(string):
"""
Takes a string and returns a new string with all diacritical marks removed.
Parameters:
string (str): The string to deburr.
Returns:
str: A new string with all diacritical marks removed.
Example:
>>> deburr('café')
'cafe'
"""
normalized_string = unicodedata.normalize('NFD', string)
deburred_string = ''.join(char for char in normalized_string if not unicodedata.combining(char))
return deburred_string
print(deburr('déjà vu'))